add some extra assets FX and SFX
This commit is contained in:
@@ -99,9 +99,7 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
public Vector3 targetDirection;
|
||||
|
||||
public simpleWaypointSystem currentSimpleWaypointSystem;
|
||||
|
||||
public List<Transform> currentWayPoints = new List<Transform> ();
|
||||
public Vector3 currentTargetDirection;
|
||||
|
||||
public bool adjustingPlayerToMovement;
|
||||
|
||||
@@ -118,6 +116,12 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
public bool jumpOnEndState;
|
||||
|
||||
[Space]
|
||||
|
||||
public simpleWaypointSystem currentSimpleWaypointSystem;
|
||||
|
||||
public List<Transform> currentWayPoints = new List<Transform> ();
|
||||
|
||||
[Space]
|
||||
[Header ("Events Settings")]
|
||||
[Space]
|
||||
@@ -176,8 +180,6 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
float lastTimeReverseMovementDirectionInput;
|
||||
|
||||
Vector3 currentTargetDirection;
|
||||
|
||||
float lastTimeMoving;
|
||||
|
||||
float lastTimeNotMoving;
|
||||
@@ -190,6 +192,8 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
float lastTimeWalkOnBalanceActive;
|
||||
|
||||
float lastTimeWalkOnBalanceEnd = -1;
|
||||
|
||||
bool ignoreHorizontalCameraRotationInputState;
|
||||
|
||||
|
||||
@@ -537,6 +541,10 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
if (lastTimeWalkOnBalanceActive > 0 && Time.time < lastTimeWalkOnBalanceActive + 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (lastTimeWalkOnBalanceEnd > -1 && Time.time < lastTimeWalkOnBalanceEnd + 1) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (state) {
|
||||
@@ -582,6 +590,10 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
lastTimeWalkOnBalanceActive = Time.time;
|
||||
|
||||
lastTimeWalkOnBalanceEnd = -1;
|
||||
|
||||
currentTargetDirection = Vector3.zero;
|
||||
|
||||
} else {
|
||||
mainPlayerController.setCheckOnGroungPausedState (false);
|
||||
|
||||
@@ -602,6 +614,8 @@ public class walkOnBalanceSystem : externalControllerBehavior
|
||||
|
||||
ignoreHorizontalCameraRotationInputState = false;
|
||||
}
|
||||
|
||||
lastTimeWalkOnBalanceEnd = Time.time;
|
||||
}
|
||||
|
||||
mainPlayerController.setUpdate2_5dClampedPositionPausedState (state);
|
||||
|
||||
Reference in New Issue
Block a user