Exemplo n.º 1
0
        //Notice there is NO reference to either of our Singletons here
        //because Singletons are globally accessible.

        //The SingletonClass that does not extend MonoBehavior needs
        //its GetInstance() method to be called at least once to set it up.
        private void Awake()
        {
            SingletonClass.GetInstance();
        }