Ejemplo n.º 1
0
    // Handler64 está sobre el handler56//

    private void HandlerGroup65() //  End Of Zone 4 in Scene 5
    {
        levelManager.InstantiatePortal("AnyPlayerTeleporter", new Vector2(34.03f, 6.26f), new Vector2(-2f, .1f), true, 20);
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(33.73f, 6.26f));
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(33.43f, 6.26f));
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(33.13f, 6.26f));

        ForLoopDestroyer fDestroyer = GameObject.Find("BoxesHolder").GetComponent <ForLoopDestroyer>();

        fDestroyer.DestroyOneMoreObject();
    }
Ejemplo n.º 2
0
    private void HandlerGroup62() //End of Zone 6 in Scene 5
    {
        levelManager.InstantiatePortal("AnyPlayerTeleporter", new Vector2(113f, 42.8f), new Vector2(.1f, .1f), true, 22);
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(111.53f, 42.8f));
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(110.69f, 42.8f));
        levelManager.InstantiatePrefab("Exp/ExpFeedback35", new Vector2(109.82f, 42.8f));

        ForLoopDestroyer fDestroyer = GameObject.Find("BoxesHolder").GetComponent <ForLoopDestroyer>();

        fDestroyer.DestroyOneMoreObject();
    }
Ejemplo n.º 3
0
    public void SwitchReady(string incomingSwitch)
    {
        // Este código se llama desde los SwitchActions de la escena.

        for (int i = 0; i < switchesNeeded.Length; i++)
        {
            if (switchesNeeded[i] == incomingSwitch)
            {
                switchesNeeded[i] = null;
                switchesActivated++;
            }
        }

        if (switchesActivated == switchesNeeded.Length)
        {
            ForLoopDestroyer fDestroyer = GameObject.Find(objectToFind).GetComponent <ForLoopDestroyer>();
            fDestroyer.DestroyOneMoreObject();
        }
    }