예제 #1
0
 // Use this for initialization
 void Start()
 {
     if( CallBackClass != null && MethodToInvoke == "" ){
         MethodDelegate = CallBackClass.GetComponent<EX2D_GUIController>().OnButtonPressed;
         OnTouchedDelegate = CallBackClass.GetComponent<EX2D_GUIController>().OnButtonTouched;
     }
 }
 public static void CleanUp()
 {
     DisableHat?.Invoke();
     DisableHat         = null;
     OnUpdateTicked     = null;
     OnTimeChanged      = null;
     OnInventoryChanged = null;
     OnButtonPressed    = null;
     OnDayStarted       = null;
 }
예제 #3
0
 public void addCallbackOnButtonPressed(OnButtonPressedDelegate fct)
 {
     cbButton.Add(fct);
 }
예제 #4
0
 public void addCallbackOnButtonPressed(OnButtonPressedDelegate fct)
 {
     cbButton.Add(fct);
 }