added animation for the other scenes
This commit is contained in:
parent
831c09f67a
commit
b7520b6836
|
@ -3059,7 +3059,7 @@
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Renderable Component:
|
Renderable Component:
|
||||||
Mesh: 149697411
|
Mesh: 149697411
|
||||||
Material: 126974645
|
Material: 128805346
|
||||||
IsActive: true
|
IsActive: true
|
||||||
RigidBody Component:
|
RigidBody Component:
|
||||||
Type: Dynamic
|
Type: Dynamic
|
||||||
|
@ -3089,6 +3089,10 @@
|
||||||
Position Offset: {x: 0, y: 0.300000012, z: 0}
|
Position Offset: {x: 0, y: 0.300000012, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts:
|
Scripts:
|
||||||
- Type: PlayerController
|
- Type: PlayerController
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
@ -3116,6 +3120,20 @@
|
||||||
throwItem: false
|
throwItem: false
|
||||||
rayDistance: 0.75
|
rayDistance: 0.75
|
||||||
rayHeight: 0.100000001
|
rayHeight: 0.100000001
|
||||||
|
- Type: PlayerAnimations
|
||||||
|
Enabled: true
|
||||||
|
playerIdleClip: 227450439
|
||||||
|
playerWalkClip: 229125027
|
||||||
|
playerRunClip: 228149757
|
||||||
|
playerPickUpClip: 219605278
|
||||||
|
playerCarryIdleClip: 231128260
|
||||||
|
playerCarryWalkClip: 227671720
|
||||||
|
playerThrowClip: 223399345
|
||||||
|
playerJumpStartClip: 223009573
|
||||||
|
playerJumpLoopClip: 230974023
|
||||||
|
playerJumpEndClip: 228134756
|
||||||
|
silhouettePlayer: 462
|
||||||
|
silhouetteBag: 465
|
||||||
- EID: 3
|
- EID: 3
|
||||||
Name: HoldingPoint
|
Name: HoldingPoint
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
@ -3178,7 +3196,11 @@
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Renderable Component:
|
Renderable Component:
|
||||||
Mesh: 144838771
|
Mesh: 144838771
|
||||||
Material: 123745521
|
Material: 117923942
|
||||||
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 462
|
- EID: 462
|
||||||
|
@ -3195,6 +3217,10 @@
|
||||||
Mesh: 149697411
|
Mesh: 149697411
|
||||||
Material: 126391182
|
Material: 126391182
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 465
|
- EID: 465
|
||||||
Name: SilouetteBag
|
Name: SilouetteBag
|
||||||
|
@ -3210,6 +3236,10 @@
|
||||||
Mesh: 144838771
|
Mesh: 144838771
|
||||||
Material: 126391182
|
Material: 126391182
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 239
|
- EID: 239
|
||||||
Name: RespawnPoint
|
Name: RespawnPoint
|
||||||
|
|
|
@ -11620,7 +11620,7 @@
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Renderable Component:
|
Renderable Component:
|
||||||
Mesh: 149697411
|
Mesh: 149697411
|
||||||
Material: 126974645
|
Material: 128805346
|
||||||
IsActive: true
|
IsActive: true
|
||||||
RigidBody Component:
|
RigidBody Component:
|
||||||
Type: Dynamic
|
Type: Dynamic
|
||||||
|
@ -11650,6 +11650,10 @@
|
||||||
Position Offset: {x: 0, y: 0.300000012, z: 0}
|
Position Offset: {x: 0, y: 0.300000012, z: 0}
|
||||||
Rotation Offset: {x: 0, y: 0, z: 0}
|
Rotation Offset: {x: 0, y: 0, z: 0}
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts:
|
Scripts:
|
||||||
- Type: PlayerController
|
- Type: PlayerController
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
@ -11677,6 +11681,20 @@
|
||||||
throwItem: false
|
throwItem: false
|
||||||
rayDistance: 0.75
|
rayDistance: 0.75
|
||||||
rayHeight: 0.100000001
|
rayHeight: 0.100000001
|
||||||
|
- Type: PlayerAnimations
|
||||||
|
Enabled: true
|
||||||
|
playerIdleClip: 227450439
|
||||||
|
playerWalkClip: 229125027
|
||||||
|
playerRunClip: 228149757
|
||||||
|
playerPickUpClip: 219605278
|
||||||
|
playerCarryIdleClip: 231128260
|
||||||
|
playerCarryWalkClip: 227671720
|
||||||
|
playerThrowClip: 223399345
|
||||||
|
playerJumpStartClip: 223009573
|
||||||
|
playerJumpLoopClip: 230974023
|
||||||
|
playerJumpEndClip: 228134756
|
||||||
|
silhouettePlayer: 462
|
||||||
|
silhouetteBag: 465
|
||||||
- EID: 66068
|
- EID: 66068
|
||||||
Name: HoldingPoint
|
Name: HoldingPoint
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
@ -11739,7 +11757,11 @@
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Renderable Component:
|
Renderable Component:
|
||||||
Mesh: 144838771
|
Mesh: 144838771
|
||||||
Material: 123745521
|
Material: 117923942
|
||||||
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
IsActive: true
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 462
|
- EID: 462
|
||||||
|
@ -11756,6 +11778,10 @@
|
||||||
Mesh: 149697411
|
Mesh: 149697411
|
||||||
Material: 126391182
|
Material: 126391182
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 465
|
- EID: 465
|
||||||
Name: SilouetteBag
|
Name: SilouetteBag
|
||||||
|
@ -11771,6 +11797,10 @@
|
||||||
Mesh: 144838771
|
Mesh: 144838771
|
||||||
Material: 126391182
|
Material: 126391182
|
||||||
IsActive: true
|
IsActive: true
|
||||||
|
Animator Component:
|
||||||
|
Rig: 77816045
|
||||||
|
AnimationController: 0
|
||||||
|
IsActive: true
|
||||||
Scripts: ~
|
Scripts: ~
|
||||||
- EID: 66065
|
- EID: 66065
|
||||||
Name: RespawnPoint
|
Name: RespawnPoint
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class PlayerJumpState : BaseState
|
||||||
}
|
}
|
||||||
public override void OnEnter()
|
public override void OnEnter()
|
||||||
{
|
{
|
||||||
//Debug.Log("WALK ENTER");
|
//Debug.Log("jump");
|
||||||
}
|
}
|
||||||
public override void update()
|
public override void update()
|
||||||
{
|
{
|
||||||
|
|
|
@ -324,6 +324,8 @@ public class PlayerController : Script
|
||||||
if ( (Input.GetKeyDown(Input.KeyCode.Space) || landedOnJumpPad ) && isGrounded && rb != null)
|
if ( (Input.GetKeyDown(Input.KeyCode.Space) || landedOnJumpPad ) && isGrounded && rb != null)
|
||||||
{
|
{
|
||||||
currentState = RaccoonStates.JUMP;
|
currentState = RaccoonStates.JUMP;
|
||||||
|
if (stateMachine && !stateMachine.IsState(typeof(PlayerJumpState)))
|
||||||
|
stateMachine.SetState(typeof(PlayerJumpState));
|
||||||
Vector3 v = rb.LinearVelocity;
|
Vector3 v = rb.LinearVelocity;
|
||||||
v.y = initialJumpVel * 0.5f;
|
v.y = initialJumpVel * 0.5f;
|
||||||
if (holdItem && pat != null && pat.item.GetScript<Item>() != null)
|
if (holdItem && pat != null && pat.item.GetScript<Item>() != null)
|
||||||
|
@ -347,7 +349,11 @@ public class PlayerController : Script
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isGrounded && rb != null && (rb.LinearVelocity.y < 0.0f || Input.GetKeyUp(Input.KeyCode.Space)))
|
if (!isGrounded && rb != null && (rb.LinearVelocity.y < 0.0f || Input.GetKeyUp(Input.KeyCode.Space)))
|
||||||
|
{
|
||||||
currentState = RaccoonStates.FALLING;
|
currentState = RaccoonStates.FALLING;
|
||||||
|
if (stateMachine && !stateMachine.IsState(typeof(PlayerFallState)))
|
||||||
|
stateMachine.SetState(typeof(PlayerFallState));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -378,7 +384,11 @@ public class PlayerController : Script
|
||||||
{
|
{
|
||||||
isGrounded = true;
|
isGrounded = true;
|
||||||
if (currentState == RaccoonStates.FALLING)
|
if (currentState == RaccoonStates.FALLING)
|
||||||
|
{
|
||||||
currentState = RaccoonStates.LANDED;
|
currentState = RaccoonStates.LANDED;
|
||||||
|
if (stateMachine && !stateMachine.IsState(typeof(PlayerLandState)))
|
||||||
|
stateMachine.SetState(typeof(PlayerLandState));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
isGrounded = false;
|
isGrounded = false;
|
||||||
|
|
Loading…
Reference in New Issue