OpenCloseRotate

TOCK by NullSave\UI Cog\Scripts\Support\OpenCloseRotate.cs

Description

Rotates a transform between two positions for opening and closing.

Properties

Closed Rotation Rotation of object when closed.
Open Rotation Rotation of object when opened.
Transition Time Time in seconds to animate between states.
Is Open True if object is currently in "open" state.

Methods

CloseBegins close animation (if currently open).
OpenBegins open animation (if currently closed).
OpenCloseToggles between open and closed states.