Door logic to move an object to a certain position with built-in Animator support from Unity using keyFrameEvents.
More...
|
|
void | StartDoorOpeningAnimation () |
| | Starts the door opening animation. The animation in its own turn runs the Open Door function from the animation.
|
| |
|
void | OpenDoor () |
| | Starts opening the door using a coroutine.
|
| |
|
void | CloseDoor () |
| | Closes the door without doing an animation.
|
| |
|
| IEnumerator | MoveDoor (Vector2 start, Vector2 end) |
| | Moves the door using lerp with the time specified from animationTime variable.
|
| |
Door logic to move an object to a certain position with built-in Animator support from Unity using keyFrameEvents.
Definition at line 10 of file Door.cs.
◆ MoveDoor()
| IEnumerator MoveDoor |
( |
Vector2 | start, |
|
|
Vector2 | end ) |
|
private |
Moves the door using lerp with the time specified from animationTime variable.
- Parameters
-
| start | start position |
| end | end position |
- Returns
Definition at line 66 of file Door.cs.
The documentation for this class was generated from the following file:
- C:/Users/christian.backstrom/Documents/Unity/FCV/FCV-Engine/Assets/Scripts/Environment/Door.cs