Exemplo n.º 1
0
        void Start()
        {
            Debug.Log("Reseting lives");
            PlayerLives lives = GameObject.FindObjectOfType <PlayerLives>();

            if (lives != null)
            {
                lives.ResetAllLives();
            }
            else
            {
                Debug.Log("PLAYER LIVES COMPONENT NOT FOUND AAH EVERYBODY GO CRAZY!");
            }

            PlayerNameTextMover textMover = GameObject.FindObjectOfType <PlayerNameTextMover>();

            if (textMover != null)
            {
                textMover.HideAll();
            }
        }