コード例 #1
0
ファイル: Quest.cs プロジェクト: StuartWright/Bloodtide
    public void ActivateQuest()
    {
        SetText();
        switch (Type)
        {
        case QuestType.Protect:
            Target.OnDeath += FailedQuest;
            break;

        case QuestType.Dual:
            //Target.Defeat += CompleteQuest;
            Target.TurnEnemy();
            Player.PlayerDied += FailedQuest;
            break;

        case QuestType.Collect:
            Player.inventory.CheckQuestItem(CollectionItem, this);
            RemoveQuestItem += Player.inventory.RemoveQuestItem;
            break;
        }
    }