// Use this for initialization void Start() { dayEvent = dayEvents.Play1; GameObject[] npcList = GameObject.FindGameObjectsWithTag("NPC"); eventID = 0; foreach (GameObject npc in npcList) { scr_npc character = npc.transform.GetComponent <scr_npc>(); if (character.MyType == scr_npc.npcType.Employee) { employeeList.Add(character.npcName, character); } if (character.MyType == scr_npc.npcType.Kid) { childrenList.Add(character.NpcName, character); } } timeCounter = 0; triggerPause = false; timeStepId = 0; }
// Use this for initialization void Start() { dayEvent = dayEvents.Play1; GameObject[] npcList = GameObject.FindGameObjectsWithTag("NPC"); eventID = 0; foreach(GameObject npc in npcList) { scr_npc character = npc.transform.GetComponent<scr_npc>(); if(character.MyType == scr_npc.npcType.Employee) { employeeList.Add(character.npcName, character); } if(character.MyType == scr_npc.npcType.Kid) { childrenList.Add(character.NpcName, character); } } timeCounter = 0; triggerPause = false; timeStepId = 0; }