public Goal CreateGoalForId(EGoalID inId) { if (GoalInstantiationFunctions.ContainsKey(inId)) { return(GoalInstantiationFunctions[inId]()); } Debug.LogError("Failed to find goal with Id " + inId); return(null); }
public Goal CreateGoalForId(EGoalID inId) { if (!GoalIdCount.ContainsKey(inId)) { GoalIdCount.Add(inId, 0); } GoalIdCount[inId]++; CreatedGoals.Add(new TestGoal(GoalOwner)); return(CreatedGoals.Last()); }