Class ClickEffect
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
Base behaviour for transient click effects that animate an UnityEngine.UI.Image.
public abstract class ClickEffect : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourClickEffect
- Derived
Fields
IsUnscaledTime
If true, uses UnityEngine.Time.unscaledDeltaTime for timing; otherwise UnityEngine.Time.deltaTime.
public bool IsUnscaledTime
Field Value
- bool
_image
protected Image _image
Field Value
- Image
_parent
protected Transform _parent
Field Value
- Transform
Methods
Init()
Finds and caches required components. Called from Start().
protected virtual void Init()
PlayEffectTween()
Implement animation step for the effect.
protected abstract void PlayEffectTween()
Start()
protected virtual void Start()
Update()
protected virtual void Update()