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