コード例 #1
0
 protected virtual void OnDestroy()
 {
     if (s_instance == this)
     {
         s_instance = null;
     }
 }
コード例 #2
0
 protected virtual void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
 }
コード例 #3
0
ファイル: LocalizeUI.cs プロジェクト: shshwdr/behind-the-lock
 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;
 }
コード例 #6
0
 static void InitStaticVariables()
 {
     s_instance = null;
 }