C# Class SpringPanel, TheUnseen

Inheritance: IgnoreTimeScale
Exibir arquivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
current SpringPanel,
onFinished OnFinished
strength float
target Vector3

Public Methods

Method Description
Begin ( GameObject go, Vector3 pos, float strength ) : SpringPanel,

Start the tweening process.

Protected Methods

Method Description
AdvanceTowardsPosition ( ) : void

Advance toward the target position.

Private Methods

Method Description
Start ( ) : void

Cache the transform.

Update ( ) : void

Advance toward the target position.

Method Details

AdvanceTowardsPosition() protected method

Advance toward the target position.
protected AdvanceTowardsPosition ( ) : void
return void

Begin() static public method

Start the tweening process.
static public Begin ( GameObject go, Vector3 pos, float strength ) : SpringPanel,
go GameObject
pos Vector3
strength float
return SpringPanel,

Property Details

current static_oe public_oe property

static public SpringPanel, current
return SpringPanel,

onFinished public_oe property

Delegate function to call when the operation finishes.
public OnFinished onFinished
return OnFinished

strength public_oe property

Strength of the spring. The higher the value, the faster the movement.
public float strength
return float

target public_oe property

Target position to spring the panel to.
public Vector3 target
return Vector3