Beispiel #1
0
    void Start()
    {
        GameObject arwing_object = GameObject.FindWithTag("Arwing");

        arwing = arwing_object.GetComponent <Arwing>();
        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <GameController>();
        }
    }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject arwing_object = GameObject.FindWithTag("Arwing");

        arwing = arwing_object.GetComponent <Arwing>();
    }