示例#1
0
    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);
            }
        }
    }