void Start() { GameObject powerupOptionsObject = GameObject.FindWithTag("PowerupOptions"); if (powerupOptionsObject != null) powerupOptions = powerupOptionsObject.GetComponent<PowerupOptions>(); if (powerupOptions == null) Debug.Log("Cannot find 'PowerupOptions' script"); }
void Start() { GameObject powerupOptionsObject = GameObject.FindWithTag("PowerupOptions"); if (powerupOptionsObject != null) powerupOptions = powerupOptionsObject.GetComponent<PowerupOptions>(); if (powerupOptions == null) Debug.Log("Cannot find 'PowerupOptions' script"); IntializePlayerControllerBehavior(); }