public void OnHayEatingFinished(HayEatingFinishedEvent eventInfo) { GameManager.instance.player.canTakeInput = true; if (health < maxHealth) { health += eventInfo.healthReplenished; if (health > maxHealth) { health = maxHealth; } } eventInfo.gameObject.transform.parent.gameObject.SetActive(false); }
private void OnInteractionFinished(HayEatingFinishedEvent eventInfo) { Transition <WalkState>(); }