Ejemplo n.º 1
0
        void Start()
        {
            GameObject gameControllerObject = GameObject.FindGameObjectWithTag("GameController");

            if (gameControllerObject != null)
            {
                gameController = gameControllerObject.GetComponent <Done_GameController>();
            }
            if (gameController == null)
            {
                Debug.Log("Cannot find 'GameController' script");
            }
        }
Ejemplo n.º 2
0
        void Start()
        {
            GameObject gameControllerObject = GameObject.FindGameObjectWithTag("GameController");

            gameController = gameControllerObject.GetComponent <Done_GameController>();
        }