コード例 #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");
 }
コード例 #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();
    }