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); } }
private void SearchForPlayer(MainCharacter player) { StateMachine.CurrentState = new StateSearch(player.Position); }
public StateShoot(MainCharacter player) { this.stateColor = Color.black; this.player = player; }
private void StartShooting(MainCharacter player) { StateMachine.CurrentState = new StateShoot(player); }
private void OnMedicineStolen(MainCharacter mc) { mc.CollectMedicine(this); rd.sprite = spriteStolenMedicine; }