public void RaiseEvent(UIEventChannel channel) { if (OnEventRaised != null) { OnEventRaised.Invoke(channel); } }
public void SetChannelForActions(UIEventChannel ch) { Init(); foreach (CAction action in actions) { action.actionObj.GetComponent <IEventEmitter <AEventData> >().ChannelToEmit = ch; } }
public void SetChannelForSelections(UIEventChannel ch) { Init(); foreach (CSelection sel in selections) { var emitter = sel.selectionObj.GetEmitter <AEventData>(); if (emitter != null) { emitter.ChannelToEmit = ch; } } }
public virtual void Validate(UIEventChannel eventChannel) { if (!Paused && !steps[currentHighestStepIndex].notAffected) { bool succesfulValidation = true; int border = downfall ? 0 : currentHighestStepIndex; for (int i = currentHighestStepIndex; i >= border; i--) { succesfulValidation = steps[i].step.HasEventChannel(eventChannel); if (succesfulValidation) { break; } } Debug.Log("validation succesful?"); Debug.Log(succesfulValidation); if (!succesfulValidation) { WrongEventOccurs.Invoke(); } } }
public bool HasEventChannel(UIEventChannel ch) { return(eventChannels.Contains(ch)); }
public bool HasEventChannel(UIEventChannel ch) { return(eventChannel == ch); }