Beispiel #1
0
    void Awake()
    {
        academy = FindObjectOfType <MazeAcademy>(); //cache the academy

        // goals = area.GetComponentsInChildren<CrateDestination>();
        // blocks = area.GetComponentsInChildren<Crate>();
    }
Beispiel #2
0
    private void Awake()
    {
        if (academy == null)
        {
            academy = GameObject.Find("Academy");
        }

        if (academy != null)
        {
            mazeAcademy = academy.GetComponent <MazeAcademy>();
        }
    }