Ejemplo n.º 1
0
 public void AddChangeEventListener(GlobalVars.GlobalVar <T> .VariableChangeEvent callback)
 {
     if (this.mListeners == null)
     {
         this.mListeners = callback;
     }
     else
     {
         this.mListeners += callback;
     }
 }
Ejemplo n.º 2
0
 public void RemoveChangeEventListener(GlobalVars.GlobalVar <T> .VariableChangeEvent callback)
 {
     this.mListeners -= callback;
 }
Ejemplo n.º 3
0
 public GlobalVar(T defaultValue)
 {
     this.mValue        = defaultValue;
     this.mDefaultValue = defaultValue;
     this.mListeners    = (GlobalVars.GlobalVar <T> .VariableChangeEvent)null;
 }