/* * 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."); } }
/* * 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."); } }