Пример #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);
     }
 }
Пример #2
0
 private void SearchForPlayer(MainCharacter player)
 {
     StateMachine.CurrentState = new StateSearch(player.Position);
 }
Пример #3
0
 public StateShoot(MainCharacter player)
 {
     this.stateColor = Color.black;
     this.player     = player;
 }
Пример #4
0
 private void StartShooting(MainCharacter player)
 {
     StateMachine.CurrentState = new StateShoot(player);
 }
Пример #5
0
 private void OnMedicineStolen(MainCharacter mc)
 {
     mc.CollectMedicine(this);
     rd.sprite = spriteStolenMedicine;
 }