C# Class SpringPosition, TheUnseen

Inheritance: IgnoreTimeScale
ファイルを表示 Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
current SpringPosition,
ignoreTimeScale bool
onFinished OnFinished
strength float
target Vector3
updateScrollView bool
worldSpace bool

Public Methods

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

Start the tweening process.

Private Methods

Method Description
NotifyListeners ( ) : void

Notify all finished event listeners.

Start ( ) : void

Cache the transform.

Update ( ) : void

Advance toward the target position.

Method Details

Begin() static public method

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

Property Details

current static_oe public_oe property

static public SpringPosition, current
return SpringPosition,

ignoreTimeScale public_oe property

Whether the time scale will be ignored. Generally UI components should set it to 'true'.
public bool ignoreTimeScale
return bool

onFinished public_oe property

Delegate to trigger when the spring 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 tween to.
public Vector3 target
return Vector3

updateScrollView public_oe property

Whether the parent scroll view will be updated as the object moves.
public bool updateScrollView
return bool

worldSpace public_oe property

Is the calculation done in world space or local space?
public bool worldSpace
return bool