private void UseHelpInputUI(bool value)
 {
     if (useHelpUIEvent)
     {
         PearlEventsManager.CallEvent(helpEvent, PearlEventType.Normal, value);
     }
 }
Example #2
0
 protected override void OnExecute()
 {
     if (pause != null)
     {
         PearlEventsManager.CallEvent(ConstantStrings.Pause, PearlEventType.Normal, pause.value);
     }
     EndAction();
 }
Example #3
0
    void Update()
    {
        Vector2 screenSize = new Vector2(Screen.width, Screen.height);

        if (this.lastScreenSize != screenSize)
        {
            this.lastScreenSize = screenSize;
            PearlEventsManager.CallEvent(ConstantStrings.ChangeResolution, PearlEventType.Normal);
        }
    }
Example #4
0
        protected override void Start()
        {
            base.Start();

            ControlVersion();

            TextManager.SetVariableString("gameName", gameName);

            StorageOptions.Load(this);
            PearlEventsManager.CallEvent(ConstantStrings.SetNewLanguageEvent, PearlEventType.Normal);
        }
        protected override void OnExecute()
        {
            if (eventEnum != null && eventType != null)
            {
                object parameters = null;
                if (useParameter != null && useParameter.value && parameter != null)
                {
                    parameters = parameter.value.Get();
                }


                if (wantReturn != null && wantReturn.value)
                {
                    if (useParameter != null && useParameter.value)
                    {
                        PearlEventsManager.CallEventWithReturn(eventEnum.value, eventType.value, FinishAction, parameters);
                    }
                    else
                    {
                        PearlEventsManager.CallEventWithReturn(eventEnum.value, eventType.value, FinishAction);
                    }
                }
                else
                {
                    if (useParameter != null && useParameter.value)
                    {
                        PearlEventsManager.CallEvent(eventEnum.value, eventType.value, parameters);
                    }
                    else
                    {
                        PearlEventsManager.CallEvent(eventEnum.value, eventType.value);
                    }
                    EndAction();
                }
            }
            else
            {
                EndAction();
            }
        }
Example #6
0
 protected void Start()
 {
     PearlEventsManager.CallEvent("test", PearlEventType.Normal, "test");
     PearlEventsManager.CallEventWithReturn("testWait", PearlEventType.Normal, OnFinishtestWait);
 }
Example #7
0
 // Start is called before the first frame update
 protected void Awake()
 {
     PearlEventsManager.CallEvent("testTrigger", PearlEventType.Trigger, "testTrigger");
 }
Example #8
0
 public void CallTriggerEvent(string ev)
 {
     PearlEventsManager.CallEvent(ev, PearlEventType.Normal);
 }