Ejemplo n.º 1
0
    // 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();
    }
Ejemplo n.º 2
0
    // 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();
    }