// === Initialisation === // void Start() { // -- Populate List for (ushort i = 0; i < (ushort)E_Instruct_Type.INSTRUCT_TOTAL; ++i) FlagCheckList.Add ((E_Instruct_Type)i, false); m_Instance = this; StartCoroutine (CRT_CheckFlag ()); }
private void Awake() { if (_instance == null) { _instance = this; } else { Destroy(this.gameObject); } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
void Awake() { IM = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <InstructionsManager>(); }