Exemplo n.º 1
0
 protected override void Awake()
 {
     base.Awake();
     inputComponent = GetLogicalComponent <InputReaderComponent>();
     EventsManager.AddMethod <genericDelegate <bool> >(EventAction.CallPause, ReceivePause, this);
     CreateDictionary();
 }
Exemplo 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);
 }
Exemplo 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);
        }
Exemplo 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);
 }
Exemplo 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>();
 }
Exemplo n.º 6
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <Transform>(EventAction.CreatePlayer, CreateCamera);
 }
Exemplo n.º 7
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, ReceivePause);
     EventsManager.AddMethod(EventAction.GetInputEntryMenu, ReceiveInputOpenCloseMenu);
     EventsManager.AddMethod(EventAction.GetInputReturnUI, ReceiveInputReturn);
 }
Exemplo n.º 8
0
 protected override void SubscribeEvents()
 {
     EventsManager.AddMethod <SceneEnum>(EventAction.NewScene, ReceiveCurrentLevel);
 }
Exemplo n.º 9
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, PauseControl);
 }
Exemplo n.º 10
0
 protected override void SubscribeEvents()
 {
     EventsManager.AddMethod <bool>(EventAction.CallPause, ReceivePause);
 }
Exemplo n.º 11
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <float>(EventAction.SendHealth, ReceiveHealth);
 }
Exemplo n.º 12
0
 protected override void SubscribEvents()
 {
     EventsManager.AddMethod <int>(EventAction.CallFrameRate, SeeFPS);
 }
Exemplo n.º 13
0
 private void SubscribeEvents()
 {
     EventsManager.AddMethod <genericDelegate <float> >(EventFastAction.GetInputMovement, ReceiveInputMovement);
     EventsManager.AddMethod <genericDelegate>(EventAction.GetInputJump, ReceiveInputJump, this);
 }