示例#1
0
    // Use this for initialization
    void Start()
    {
        if (nbItems == 0)
        {
            nbItems = 1;
        }
        qo = new CollectionObjective("Gather", nbItems, item, "Gather 10 meat!", false);
        Debug.Log(qo.ToString());

        createItems();
    }
示例#2
0
文件: Quest.cs 项目: zunath/SWLOR_NWN
        public IQuest AddObjective(int state, IQuestObjective objective)
        {
            if (!QuestStates.ContainsKey(state - 1))
            {
                QuestStates[state - 1] = new QuestState();
            }

            var questState = QuestStates[state - 1];

            questState.AddObjective(objective);

            return(this);
        }
示例#3
0
        public void AddObjective(IQuestObjective objective)
        {
            int index = Objectives.Count;

            Objectives[index] = objective;
        }