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

        IntializePlayerControllerBehavior();
    }