Esempio n. 1
0
 protected override void Awake()
 {
     base.Awake();
     inputComponent = GetLogicalComponent <InputReaderComponent>();
     EventsManager.AddMethod <genericDelegate <bool> >(EventAction.CallPause, ReceivePause, this);
     CreateDictionary();
 }
Esempio n. 2
0
 protected override void SubscribeEvents()
 {
     EventsManager.AddMethod <float>(EventAction.SendHealth, ReceiveHealth);
     EventsManager.AddMethod <Vector2>(EventAction.GetInputMovement, ReceiveInputMovement);
     EventsManager.AddMethod <EventAction>(EventAction.GetInputUse, ReceiveInputPower);
     EventsManager.AddMethod <EventAction>(EventAction.GetInputAttack, ReceiveInputPower);
 }
Esempio n. 3
0
        protected void SubscribeEvents()
        {
            EventsManager.AddMethod <genericDelegate <bool> >(EventAction.CallPause, ReceivePause, this);

            EventsManager.AddMethod <genericDelegate>(EventFastAction.GetInputEntryMenu, ReceiveInputOpenCloseMenu);
            EventsManager.AddMethod <genericDelegate>(EventFastAction.GetInputReturnUI, ReceiveInputReturn);
        }
Esempio n. 4
0
 protected override void Awake()
 {
     base.Awake();
     sceneSystem  = GetLogicalComponent <SceneSystemComponent>();
     cursorSystem = GetLogicalComponent <CursorEnableComponent>();
     currentLevel = sceneSystem.ObeyReturnCurrentLevel();
     EventsManager.AddMethod <genericDelegate <SceneEnum> >(EventAction.NewScene, ReceiveCurrentLevel, this);
     transform.Find("FrameRateUI").gameObject.SetActive(debugMode);
 }
Esempio n. 5
0
 protected override void Awake()
 {
     base.Awake();
     if (poolPrefab)
     {
         GameObject obj = GameObject.Instantiate(poolPrefab);
         obj.name = obj.name.Split('(')[0];
     }
     EventsManager.AddMethod <genericDelegate <bool> >(EventAction.CallPause, ReceivePause, this);
     pauseComponent = GetLogicalComponent <PauseComponents>();
 }
Esempio n. 6
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <Transform>(EventAction.CreatePlayer, CreateCamera);
 }
Esempio n. 7
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, ReceivePause);
     EventsManager.AddMethod(EventAction.GetInputEntryMenu, ReceiveInputOpenCloseMenu);
     EventsManager.AddMethod(EventAction.GetInputReturnUI, ReceiveInputReturn);
 }
Esempio n. 8
0
 protected override void SubscribeEvents()
 {
     EventsManager.AddMethod <SceneEnum>(EventAction.NewScene, ReceiveCurrentLevel);
 }
Esempio n. 9
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, PauseControl);
 }
Esempio n. 10
0
 protected override void SubscribeEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, ReceivePause);
 }
Esempio n. 11
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <float>(EventAction.SendHealth, ReceiveHealth);
 }
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <int>(EventAction.CallFrameRate, SeeFPS);
 }
Esempio n. 13
0
 private void SubscribeEvents()
 {
     EventsManager.AddMethod <genericDelegate <float> >(EventFastAction.GetInputMovement, ReceiveInputMovement);
     EventsManager.AddMethod <genericDelegate>(EventAction.GetInputJump, ReceiveInputJump, this);
 }