FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
Door Class Reference

Door logic to move an object to a certain position with built-in Animator support from Unity using keyFrameEvents. More...

Inheritance diagram for Door:

Public Member Functions

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.
 

Private Member Functions

IEnumerator MoveDoor (Vector2 start, Vector2 end)
 Moves the door using lerp with the time specified from animationTime variable.
 

Detailed Description

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.

Member Function Documentation

◆ MoveDoor()

IEnumerator MoveDoor ( Vector2 start,
Vector2 end )
private

Moves the door using lerp with the time specified from animationTime variable.

Parameters
startstart position
endend position
Returns

Definition at line 66 of file Door.cs.


The documentation for this class was generated from the following file: