protected virtual void OnDestroy()
 {
     if (s_instance == this)
     {
         s_instance = null;
     }
 }
 protected virtual void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
 }
Пример #3
0
 protected virtual string GetLocalizedText(string fieldName)
 {
     return((textTable != null && textTable.HasField(fieldName))
         ? textTable.GetFieldTextForLanguage(fieldName, GlobalTextTable.currentLanguage)
         : GlobalTextTable.Lookup(fieldName));
 }
Пример #4
0
 protected virtual void OnDestroy()
 {
     s_instance = null;
 }
Пример #5
0
 protected virtual void Awake()
 {
     s_instance = this;
 }
 static void InitStaticVariables()
 {
     s_instance = null;
 }