Esempio n. 1
0
 public UserAction GetAction(MainCharacter mainCharacter)
 {
     if (MedicineAvailable())
     {
         return(new UserAction("Voler", Button.INTERACT, new List <Button>()
         {
             Button.UP, Button.DOWN
         }, 3, () => OnMedicineStolen(mainCharacter)));
     }
     else
     {
         return(null);
     }
 }
Esempio n. 2
0
 private void SearchForPlayer(MainCharacter player)
 {
     StateMachine.CurrentState = new StateSearch(player.Position);
 }
Esempio n. 3
0
 public StateShoot(MainCharacter player)
 {
     this.stateColor = Color.black;
     this.player     = player;
 }
Esempio n. 4
0
 private void StartShooting(MainCharacter player)
 {
     StateMachine.CurrentState = new StateShoot(player);
 }
Esempio n. 5
0
 private void OnMedicineStolen(MainCharacter mc)
 {
     mc.CollectMedicine(this);
     rd.sprite = spriteStolenMedicine;
 }