Beispiel #1
0
    private void HandleCase17(GameObject player) //Return Zone Colliders
    {
        //ReturnFrom1
        ColliderDeactivator cDeactivatorZone1 = GameObject.Find("Zone1Intro").GetComponent <ColliderDeactivator>();

        cDeactivatorZone1.OnEnterPlayer(player);
    }
Beispiel #2
0
    private void HandleCase19(GameObject player)
    {
        //ReturnFrom3
        ColliderDeactivator cDeactivator3 = GameObject.Find("Zone3").GetComponent <ColliderDeactivator>();

        cDeactivator3.OnEnterPlayer(player);
    }
Beispiel #3
0
    private void HandleCase15(GameObject player)
    {
        // Activate Secret Warrior Zone Colliders
        ColliderDeactivator cDeactivatorWarriorZone = GameObject.Find("WarriorWeirdZone").GetComponent <ColliderDeactivator>();

        cDeactivatorWarriorZone.OnEnterPlayer(player);
    }
Beispiel #4
0
    private void HandleCase16(GameObject player)
    {
        // Activate Secret Engineer Zone Colliders
        ColliderDeactivator cDeactivatorEnginZone = GameObject.Find("EnginWeirdZone").GetComponent <ColliderDeactivator>();

        cDeactivatorEnginZone.OnEnterPlayer(player);
    }
Beispiel #5
0
    private void HandleCase14(GameObject player)
    {
        //Activate Secret Mage Zone Colliders
        ColliderDeactivator cDeactivatorMageZone = GameObject.Find("MageWeirdZone").GetComponent <ColliderDeactivator>();

        cDeactivatorMageZone.OnEnterPlayer(player);
    }
Beispiel #6
0
    private void HandleCase13(GameObject player)
    {
        //Activate Zone 6 Colliders
        ColliderDeactivator cDeactivator6 = GameObject.Find("Zone6").GetComponent <ColliderDeactivator>();

        cDeactivator6.OnEnterPlayer(player);
    }
Beispiel #7
0
    private void HandleCase9(GameObject player)
    {
        //Activate Zone 2 Colliders
        ColliderDeactivator cDeactivatorZone2 = GameObject.Find("Zone2").GetComponent <ColliderDeactivator>();

        cDeactivatorZone2.OnEnterPlayer(player);
    }
Beispiel #8
0
    // Scene 5 Deactivators


    private void HandleCase8(GameObject player)
    {
        ColliderDeactivator cDeactivatorZone2 = GameObject.Find("Zone1Intro").GetComponent <ColliderDeactivator>();

        cDeactivatorZone2.OnEnterPlayer(player);
        //Activate Zone 1 Colliders
    }
Beispiel #9
0
    private void HandleCase12(GameObject player)
    {
        //Activate Zone 5 Colliders
        ColliderDeactivator cDeactivator5 = GameObject.Find("Zone5").GetComponent <ColliderDeactivator>();

        cDeactivator5.OnEnterPlayer(player);

        ColliderDeactivator cDeactivator5Engin = GameObject.Find("Zone5Engin").GetComponent <ColliderDeactivator>();

        cDeactivator5Engin.OnEnterPlayer(player);
    }
Beispiel #10
0
    private void ActivateDestinyColliders(GameObject player)
    {
        GameObject destination = GameObject.Find(placeToGo);

        if (destination)
        {
            if (destination.GetComponent <ColliderDeactivator>())
            {
                ColliderDeactivator cDeactivator = destination.GetComponent <ColliderDeactivator>();
                cDeactivator.OnEnterPlayer(player);
            }
        }
    }