-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4725b88
commit 8d0b450
Showing
6 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...nents/motion/3D/first-person/controller/states/transitions/fall_to_wall_run_transition.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class_name FallToWallRunTransition extends MachineTransition | ||
|
||
|
||
func should_transition() -> bool: | ||
if from_state is Fall: | ||
return from_state.wall_run_start_cooldown_timer.is_stopped() | ||
|
||
return true | ||
|
||
|
||
func on_transition() -> void: | ||
if from_state is Fall and to_state is WallRun: | ||
from_state.wall_run_start_cooldown_timer.stop() |
13 changes: 13 additions & 0 deletions
13
...nents/motion/3D/first-person/controller/states/transitions/jump_to_wall_run_transition.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class_name JumpToWallRunTransition extends MachineTransition | ||
|
||
|
||
func should_transition() -> bool: | ||
if from_state is Jump: | ||
return from_state.wall_run_start_cooldown_timer.is_stopped() | ||
|
||
return true | ||
|
||
|
||
func on_transition() -> void: | ||
if from_state is Jump and to_state is WallRun: | ||
from_state.wall_run_start_cooldown_timer.stop() |