Credits and Transition done #454
Binary file not shown.
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
Name: Level3_NavData
|
||||
ID: 263362242
|
||||
ID: 252819653
|
||||
Type: 15
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- NavData: 263362242
|
||||
- NavData: 252819653
|
||||
- EID: 0
|
||||
Name: Light_Direction
|
||||
IsActive: true
|
||||
|
@ -6,7 +6,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -4.64838362, y: 2.94342947, z: 0.209690213}
|
||||
Rotate: {x: 6.41686916, y: 0.727440596, z: 2.90124035}
|
||||
Rotate: {x: 2.99841309, y: 1.61244416, z: -0.287879944}
|
||||
Scale: {x: 1, y: 1, z: 1}
|
||||
IsActive: true
|
||||
Light Component:
|
||||
|
@ -3626,7 +3626,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 2.75, y: 0, z: 6.25}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: -0, y: 0, z: -0}
|
||||
Scale: {x: 0.75, y: 0.75, z: 0.75}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -5367,7 +5367,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 3.25, y: 0, z: 7.55967045}
|
||||
Translate: {x: 3.47301221, y: 0, z: 8.17157459}
|
||||
Rotate: {x: -0, y: 0, z: -0}
|
||||
Scale: {x: 1, y: 1, z: 1}
|
||||
IsActive: true
|
||||
|
@ -10590,7 +10590,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 2.91941047, y: 0.527999997, z: 7.41522264}
|
||||
Translate: {x: 2.91941047, y: 0.527999997, z: 8.10036278}
|
||||
Rotate: {x: -0, y: 0, z: -0}
|
||||
Scale: {x: 1, y: 1, z: 1}
|
||||
IsActive: true
|
||||
|
@ -14794,8 +14794,8 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 3.65231538, y: 0.438600183, z: 7.60280371}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Translate: {x: 3.65231538, y: 0.438600183, z: 8.16182518}
|
||||
Rotate: {x: -0, y: 0, z: -0}
|
||||
Scale: {x: 1, y: 1, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -15265,7 +15265,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: spark1
|
||||
audio: event:/Props/sparks
|
||||
loop: false
|
||||
timeDruation: 2.29999995
|
||||
- EID: 608
|
||||
Name: Light particles
|
||||
IsActive: true
|
||||
|
@ -15299,7 +15305,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: spark2
|
||||
audio: event:/Props/sparks
|
||||
loop: false
|
||||
timeDruation: 3.20000005
|
||||
- EID: 609
|
||||
Name: Light particles
|
||||
IsActive: true
|
||||
|
@ -15333,7 +15345,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: spark3
|
||||
audio: event:/Props/sparks
|
||||
loop: false
|
||||
timeDruation: 2.5
|
||||
- EID: 610
|
||||
Name: Light particles
|
||||
IsActive: true
|
||||
|
@ -15367,7 +15385,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: spark4
|
||||
audio: event:/Props/sparks
|
||||
loop: false
|
||||
timeDruation: 3.29999995
|
||||
- EID: 611
|
||||
Name: Water particles
|
||||
IsActive: true
|
||||
|
@ -15435,7 +15459,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.100000001, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: spark5
|
||||
audio: event:/Props/sparks
|
||||
loop: false
|
||||
timeDruation: 2.29999995
|
||||
- EID: 613
|
||||
Name: Water particles
|
||||
IsActive: true
|
||||
|
@ -15469,7 +15499,13 @@
|
|||
Color Decay: {x: 0, y: 0, z: 0, w: 0}
|
||||
Acceleration: {x: 0, y: -0.899999976, z: 0}
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: DecorationAudio
|
||||
Enabled: true
|
||||
name: water2
|
||||
audio: event:/Props/tap_loop
|
||||
loop: true
|
||||
timeDruation: 0.5
|
||||
- EID: 615
|
||||
Name: Water particles
|
||||
IsActive: true
|
||||
|
|
|
@ -92,7 +92,8 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
|||
{
|
||||
raccoonCaught = true;
|
||||
Transform pcTransform = ai.player.GetComponent<Transform>();
|
||||
Transform netTransform = ai.attackHitbox.GetComponentInChildren<Transform>();
|
||||
ai.player.GetScript<PlayerController>().Caught();
|
||||
Transform netTransform = ai.attackHitbox.GetComponentInChildren<Transform>();
|
||||
if (pcTransform && netTransform)
|
||||
{
|
||||
pcTransform.GlobalPosition = netTransform.GlobalPosition;
|
||||
|
|
|
@ -436,9 +436,12 @@ public class PlayerController : Script
|
|||
|
||||
if (!isGrounded && rb != null && (rb.LinearVelocity.y < 0.0f || Input.GetKeyUp(Input.KeyCode.Space)))
|
||||
{
|
||||
currentState = RaccoonStates.FALLING;
|
||||
if (stateMachine && !stateMachine.IsState(typeof(PlayerFallState)))
|
||||
stateMachine.SetState(typeof(PlayerFallState));
|
||||
if (currentState != RaccoonStates.CAUGHT)
|
||||
{
|
||||
currentState = RaccoonStates.FALLING;
|
||||
if (stateMachine && !stateMachine.IsState(typeof(PlayerFallState)))
|
||||
stateMachine.SetState(typeof(PlayerFallState));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -544,11 +547,8 @@ public class PlayerController : Script
|
|||
|
||||
public void Reset()
|
||||
{
|
||||
//Debug.Log("PlayerController: Raccon Reset " + currentState);
|
||||
|
||||
if (currentState == RaccoonStates.CAUGHT && tranform && respawnPoint)
|
||||
if (tranform && respawnPoint)
|
||||
{
|
||||
//Debug.Log("PlayerController: Raccon Reset inside if " + currentState);
|
||||
currentState = RaccoonStates.IDLE;
|
||||
if (stateMachine && !stateMachine.IsState(typeof(PlayerIdleState)))
|
||||
stateMachine.SetState(typeof(PlayerIdleState));
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
using SHADE;
|
||||
using SHADE_Scripting.Audio;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
public class DecorationAudio : Script
|
||||
{
|
||||
public string name = "REPLACETHIS";
|
||||
public string audio = "event:/UI/botton_hover";
|
||||
public bool loop = true;
|
||||
public float timeDruation = 0.5f;
|
||||
private float timer = 0.0f;
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
if (audio != "Empty")
|
||||
{
|
||||
AudioHandler.audioClipHandlers[name] = Audio.CreateAudioClip(audio);
|
||||
Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers[name], GameObject.EntityId);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
{
|
||||
if (loop)
|
||||
AudioHandler.audioClipHandlers[name].Play();
|
||||
|
||||
}
|
||||
|
||||
protected override void update()
|
||||
{
|
||||
if (!loop)
|
||||
{
|
||||
timer += Time.DeltaTimeF;
|
||||
if (timer > timeDruation)
|
||||
{
|
||||
timer = 0.0f;
|
||||
AudioHandler.audioClipHandlers[name].Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Name: SC_DecorationAudio
|
||||
ID: 166447267
|
||||
Type: 9
|
Loading…
Reference in New Issue