public void SetTargetValue(TValue target, bool startTimer = false)
 {
     interpolator.SetTargetValue(target);
     if (startTimer)
     {
         timer.Run();
     }
 }
Пример #2
0
    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();
    }
Пример #3
0
 private void Fire(float secondsOverflow)
 {
     timerToRun.Run(secondsOverflow);
 }
Пример #4
0
 private void Fire()
 {
     timer.Run();
 }
Пример #5
0
 private void Start()
 {
     timer.Run();
 }