Esempio n. 1
0
    // === 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 ());
    }
Esempio n. 2
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Esempio n. 3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 4
0
 void Awake()
 {
     IM = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <InstructionsManager>();
 }