Exemplo n.º 1
0
 /// <summary>
 /// Create Singelton Instance
 /// </summary>
 private void CreateInstance()
 {
     if (m_instance != null && m_instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         m_instance = this;
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     m_killFeed         = GetComponent <KillFeed>();
     m_killFeed.OnKill += OnKill;
 }