void Awake()
    {
        player = FindObjectOfType <Player>();

        if (notificationObject == null)
        {
            notificationObject = FindObjectOfType <UIPowerupNotification>();
        }
    }//Awake
Exemple #2
0
    void Awake()
    {
        player             = FindObjectOfType <Player>();
        initialJumpHeight  = player.jumpHeight;
        initialSpeed       = player.playerSpeed;
        jumpHeightTimer    = 0;
        speedIncreaseTimer = 0;

        if (notificationObject == null)
        {
            notificationObject = FindObjectOfType <UIPowerupNotification>();
        }
    }//Awake