// 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; }
public void addCallbackOnButtonPressed(OnButtonPressedDelegate fct) { cbButton.Add(fct); }