// Use this for initialization void Start() { info = GetComponent <InfoManager>(); guards = FindObjectsOfType <GuardDetection>(); lights = FindObjectsOfType <LightPlayer>(); allNodes = FindObjectsOfType <Node>(); sound = GetComponent <SoundManager>(); miniMapManager.realStart(); foreach (Node n in allNodes) { n.realStart(); } foreach (GuardDetection guard in guards) { OptimalTraversal optimal = guard.GetComponent <OptimalTraversal>(); optimal.realStart(); } headGuard = GetComponent <GuardManager>(); info.realStart(); headGuard.realStart(); }
// Use this for initialization void Start() { info = GetComponent<InfoManager>(); guards = FindObjectsOfType<GuardDetection>(); lights = FindObjectsOfType<LightPlayer>(); allNodes = FindObjectsOfType<Node>(); sound = GetComponent<SoundManager>(); miniMapManager.realStart(); foreach (Node n in allNodes) { n.realStart(); } foreach (GuardDetection guard in guards) { OptimalTraversal optimal = guard.GetComponent<OptimalTraversal>(); optimal.realStart(); } headGuard = GetComponent<GuardManager>(); info.realStart(); headGuard.realStart(); }