/// <summary> /// Hide Agent Creation Menu /// </summary> public void SpawnAgent(string agentType) { // Debug.Log("Spawning Agent"); foreach (Agents agent in units) { if (agent.unitType == Agents.GetAgentFromString(agentType)) { Instantiate(agent.gameObject, newAgentPosition, newAgentRotation); } } creationMenu.SetActive(false); }