Пример #1
0
    public override void Attach(GameObject attachTo)
    {
        paddle = attachTo.GetComponent <Paddle>();

        if (paddle)
        {
            God.haggleLogic.time += timeToGive;
            var t   = God.SpawnAt(God.main.hitText, transform.position);
            var fta = t.GetComponent <FloatTextAway>();
            fta.SetText("+" + God.FormatTime(timeToGive), true);
            Destroy(gameObject);
        }
        else
        {
            base.Attach(attachTo);
        }
    }
Пример #2
0
 public void SetTimeText(float time)
 {
     timeText.text = God.FormatTime(time);
 }