Exemplo n.º 1
0
        public void Throw()
        {
            interactableManager.ReturnSignalBus().TryFire(new NewDogDestinationSignal()
            {
                nodeID = targetNodeID
                         //interactablePickup = interactablePickup
            });

            interactableView.gameObject.SetActive(false);
            interactableManager.RemoveInteractable(this);
        }
Exemplo n.º 2
0
 public override void TakeAction(int targetNodeID)
 {
     interactableManager.ReturnSignalBus().TryFire(new SignalPlayOneShot()
     {
         soundName = SoundName.sniper
     });
     interactableManager.ReturnSignalBus().TryFire(new EnemyKillSignal()
     {
         nodeID = targetNodeID, killMode = KillMode.SHOOT
     });
     interactableManager.RemoveInteractable(this);
 }
Exemplo n.º 3
0
        public void Throw()
        {
            interactableManager.ReturnSignalBus().TryFire(new SignalAlertGuards()
            {
                nodeID             = targetNodeID,
                interactablePickup = interactablePickup
            });


            interactableView.gameObject.SetActive(false);
            interactableManager.RemoveInteractable(this);
        }
Exemplo n.º 4
0
        void Shoot(int targetNodeID, Directions direction)
        {
            Vector3 position = interactableManager.ReturnPathService()
                               .GetNodeLocation(targetNodeID);

            if (EnemyPresent(position, GetDiectionInVector3(direction)) == true)
            {
                enemyNodeID = interactableManager.ReturnPathService()
                              .GetNextNodeID(targetNodeID, direction);

                interactableManager.ReturnSignalBus().Fire(new EnemyKillSignal()
                {
                    nodeID = enemyNodeID, killMode = KillMode.SHOOT
                });
            }
            else
            {
                enemyNodeID = interactableManager.ReturnPathService()
                              .GetNextNodeID(targetNodeID, direction);
            }

            interactableManager.RemoveInteractable(this);
        }
Exemplo n.º 5
0
 public override void TakeAction(int nodeID)
 {
     interactableManager.ReturnSignalBus().Fire <BriefCaseSignal>();
     interactableView.gameObject.SetActive(false);
     interactableManager.RemoveInteractable(this);
 }