protected virtual void OnDestroy() { if (s_instance == this) { s_instance = null; } }
protected virtual void Awake() { if (s_instance == null) { s_instance = this; } }
protected virtual string GetLocalizedText(string fieldName) { return((textTable != null && textTable.HasField(fieldName)) ? textTable.GetFieldTextForLanguage(fieldName, GlobalTextTable.currentLanguage) : GlobalTextTable.Lookup(fieldName)); }
protected virtual void OnDestroy() { s_instance = null; }
protected virtual void Awake() { s_instance = this; }
static void InitStaticVariables() { s_instance = null; }