Example #1
0
        /*
         * END LABEL VISIBILITY MODIFIERS
         */

        // Setup a static reference to this instance
        // if it is the first created instance. Otherwise log an error.
        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                throw new System.Exception("Attempting to create multiple StarUpdater instances.");
            }
        }
Example #2
0
 /*
  * END LABEL VISIBILITY MODIFIERS
  */
 // Setup a static reference to this instance
 // if it is the first created instance. Otherwise log an error.
 void Awake()
 {
     if (Instance == null) {
     Instance = this;
       } else {
     throw new System.Exception ("Attempting to create multiple StarUpdater instances.");
       }
 }