add some extra assets FX and SFX
This commit is contained in:
@@ -210,41 +210,22 @@ public class playerLadderSystem : MonoBehaviour
|
||||
if (useLocalMovementDirection || useAlwaysLocalMovementDirection) {
|
||||
if (movementDirection == 1) {
|
||||
if (ladderVerticalInput > 0) {
|
||||
//print (1);
|
||||
} else if (ladderVerticalInput < 0) {
|
||||
//print (2);
|
||||
|
||||
} else if (ladderVerticalInput < 0) {
|
||||
if (moveInLadderCenter || !ladderStartDetected) {
|
||||
moveHorizontallyResult = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ladderVerticalInput > 0) {
|
||||
//print (3);
|
||||
|
||||
} else if (ladderVerticalInput < 0) {
|
||||
//print (4);
|
||||
|
||||
if (moveInLadderCenter || !ladderStartDetected) {
|
||||
moveHorizontallyResult = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//if (movementDirection == 1) {
|
||||
// if (ladderVerticalInput > 0) {
|
||||
// print (1);
|
||||
// } else if (ladderVerticalInput < 0) {
|
||||
// print (2);
|
||||
// }
|
||||
//} else {
|
||||
// if (ladderVerticalInput > 0) {
|
||||
// print (3);
|
||||
// } else if (ladderVerticalInput < 0) {
|
||||
// print (4);
|
||||
|
||||
// //moveHorizontallyResult = false;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -352,7 +333,9 @@ public class playerLadderSystem : MonoBehaviour
|
||||
if (Time.time < lastTimeEnterLadder + 0.1f) {
|
||||
if (currentLadderSystem != null && currentLadderSystem == newLadderSystem) {
|
||||
if (canUseSimpleLaddersOnFBA && currentLadderSystem.canUseSimpleLaddersOnFBA) {
|
||||
print ("cancel ladder");
|
||||
if (showDebugPrint) {
|
||||
print ("cancel ladder");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user