예제 #1
0
    //
    /// <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>();
    }
예제 #2
0
 void Start()
 {
     isItActive = false;
     EventsManager.AddListenerTwo(InfoAboutSpeedUpEffect);
     effectTimer = gameObject.AddComponent <Timer>();
 }