-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Locomotion): emit dash teleport events at the correct time
Previously, the OnTeleporting and OnTeleported event were being emitted at the same time in the Dash Teleporter, because the events are both emitted when the `DoTeleport` method is called. However, as the dash uses a co-routine to set the position, the destination location can take a certain amount of time be reached so the OnTeleported event needed to be emitted after that co-routine had finished. To fix this, a collection of new overridable methods have been added that break up the functionality of the `DoTeleport` method and allow the Dash Teleport script to omit the OnTeleported event and then manually emit it when required in the co-routine.
- Loading branch information
1 parent
c133fe0
commit 98f6ef1
Showing
2 changed files
with
42 additions
and
11 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