public void SetTargetValue(TValue target, bool startTimer = false) { interpolator.SetTargetValue(target); if (startTimer) { timer.Run(); } }
private void FixedUpdate() { GameObject fader = Instantiate(prefabTrail); fader.transform.position = trans.position; fader.transform.rotation = trans.rotation; fader.transform.localScale = trans.lossyScale; fader.GetComponent <SpriteRenderer>().sprite = accessor.Get(); MonoTimer fadeTimer = fader.GetComponent <MonoTimer>(); fadeTimer.SetSecondsTarget(secondsToFade); fadeTimer.Run(); }
private void Fire(float secondsOverflow) { timerToRun.Run(secondsOverflow); }
private void Fire() { timer.Run(); }
private void Start() { timer.Run(); }