// /// <summary> /// Ball /// </summary> // Start is called before the first frame update void Start() { deathTimer = gameObject.AddComponent <Timer>(); deathTimer.Duration = ConfigurationUtils.BallLifeTimeSeconds; deathTimer.Run(); waithingTimer = gameObject.AddComponent <Timer>(); waithingTimer.Duration = 1; waithingTimer.Run(); speedUpTimer = gameObject.AddComponent <Timer>(); EventsManager.AddListenerTwo(HandleSpeedUpEffectActivated); spriteRenderer = gameObject.GetComponent <SpriteRenderer>(); }
void Start() { isItActive = false; EventsManager.AddListenerTwo(InfoAboutSpeedUpEffect); effectTimer = gameObject.AddComponent <Timer>(); }