// Awake(): Calls at the start of the program void Awake() { if (s_Instance == null) s_Instance = this; else Destroy(this.gameObject); }
// Private Functions void OnDestroy() { s_Instance = null; }