private void AddGoal(GOAP_Worldstate goal) { GoalListPanel p = Instantiate(goalsPrefab, goalsParent).GetComponent <GoalListPanel>(); p.SetContent(characterData, worldStateOptions, boolOptions, ItemTypeOptions, itemTypes, (int)goal.key, goal.value); Debug.Log("Add Goal " + goal.ToString()); }
public void NewGoal() { GoalListPanel p = Instantiate(goalsPrefab, goalsParent).GetComponent <GoalListPanel>(); p.SetContent(characterData, worldStateOptions, boolOptions, ItemTypeOptions, itemTypes); characterData.goals.Add(new GOAP_Worldstate(0, false)); }