Пример #1
0
        public Goal CreateGoalForId(EGoalID inId)
        {
            if (GoalInstantiationFunctions.ContainsKey(inId))
            {
                return(GoalInstantiationFunctions[inId]());
            }

            Debug.LogError("Failed to find goal with Id " + inId);
            return(null);
        }
Пример #2
0
        public Goal CreateGoalForId(EGoalID inId)
        {
            if (!GoalIdCount.ContainsKey(inId))
            {
                GoalIdCount.Add(inId, 0);
            }

            GoalIdCount[inId]++;

            CreatedGoals.Add(new TestGoal(GoalOwner));
            return(CreatedGoals.Last());
        }