예제 #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();
    }
예제 #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();
    }