Example #1
0
 private void OnDestroy()
 {
     if (m_instance == this)
     {
         m_instance = null;
     }
 }
Example #2
0
 private void Awake()
 {
     m_rte = IOC.Resolve <IRTE>();
     if (m_rte == null)
     {
         Debug.LogError("m_rte is null");
     }
     m_instance = this;
 }