public override void ExecuteAction(IAvatar avatar) { var igniter = avatar.GetComponentInChildren <CharacterFirePitMinigame>(); if (!IsIgniting() && igniter.HasFirePitTools()) { if (IsDead()) { avatar.IgniteFirePit(this); } else if (!IsFullFlame()) { avatar.FanFirePit(this); } } }
public override bool IsActionPossible(IAvatar avatar) { var igniter = avatar.GetComponentInChildren <CharacterFirePitMinigame>(); return(!IsFullFlame() && !IsIgniting() && igniter.HasFirePitTools()); }