protected override void Awake() { base.Awake(); UiEvents.AddMousePressListener(gameObject, OnMousePress); UiEvents.AddMouseReleaseListener(gameObject, OnMouseRelease); }
private static void HandleUiEvent <T>(PlayMakerFSM fsm, UiEvents uiEvent) where T : PlayMakerUiEventBase { if ((fsm.Fsm.HandleUiEvents & uiEvent) != 0) { AddUiEventHandler <T>(fsm); } }
protected override void Awake() { base.Awake(); UiEvents.AddClickListener ( gameObject, () => OnClick.InvokeIfNotNull(this) ); }
/// <summary> /// Initializes a new instance of the <see cref="UiConsole" /> class. /// </summary> public UiConsole() { this.Events = new UiEvents(); this.Events.Input += OnInputRequired; this.Events.Output += OnOutputRequred; this.Events.Start += (s, a) => this.StartProgress(); this.Events.Failure += (s, a) => this.StopProgress(); this.Events.Success += (s, a) => this.StopProgress(); }
private void Awake() { UiEvents.AddClickListener ( gameObject, () => { OnClick.InvokeIfNotNull(); } ); }
public ConfigCenter() { InitializeComponent(); var isPro = RunTime.IsInProfessonalMode; AddOption(new GenericOption()); AddOption(new ThemeConfig()); AddOption(new UIConfig()); AddOption(new MediaOption()); if (isPro) { AddOption(new QueryConfig()); AddOption(new QueryView()); AddOption(new SubmitOrderConfig()); AddOption(new SubmitAutoResumeConfig()); } AddOption(new NetworkConfig()); AddOption(new FuncOption()); AddOption(new MailConfig()); if (isPro) { AddOption(new WebNotificationConfig()); } //AddOption(new PromotionOption()); AddOption(new VcConfig()); var ce = new GeneralEventArgs <List <AbstractOptionConfigUI> >(new List <AbstractOptionConfigUI>()); UiEvents.OnGenerateOptionsTabs(this, ce); ce.Data.ForEach(AddOption); cbMode.SelectedIndex = (int)ProgramConfiguration.Instance.Mode; cbMode.SelectedIndexChanged += (_1, _2) => { var mode = (RunningMode)cbMode.SelectedIndex; ConfigurationPresets.Apply(mode); lblModeChanged.Visible = true; }; }
protected override void Awake() { base.Awake(); UiEvents.AddClickListener(gameObject, OnClick); }
protected override void Awake() { UiEvents.AddClickListener(gameObject, Drop); }
public GameObject GameUi; //reference to the game ui //public GameObject GameOverUi; //gameover screen void Start() { uiEvents = this; }
protected override void Awake() { base.Awake(); UiEvents.AddClickListener(gameObject, NextMessage); }