private void HandleCase26(GameObject player) { GameObject firstDeactivator = GameObject.Find("eFirstZoneActivator"); ColliderDeactivator cDeactivator1 = firstDeactivator.GetComponent <ColliderDeactivator>(); cDeactivator1.OnExitPlayer(player); GameObject secondDeactivator = GameObject.Find("eSecondZoneActivator"); ColliderDeactivator cDeactivator2 = secondDeactivator.GetComponent <ColliderDeactivator>(); cDeactivator1.OnExitPlayer(player); }
private void HandleCase22(GameObject player) { //Return From 6 ColliderDeactivator cDeactivator6 = GameObject.Find("Zone6").GetComponent <ColliderDeactivator>(); cDeactivator6.OnExitPlayer(player); }
private void DeactivateOriginColliders(GameObject player) { if (GameObject.Find(groveStreet)) { GameObject origin = GameObject.Find(groveStreet); if (origin.GetComponent <ColliderDeactivator>()) { ColliderDeactivator cDeactivator = origin.GetComponent <ColliderDeactivator>(); cDeactivator.OnExitPlayer(player); } } }
private void HandleCase4(GameObject player) { GameObject eSecretBlocker = GameObject.Find("ParedMetalZonaSecretEngin"); if (eSecretBlocker) { Destroy(eSecretBlocker); } ColliderDeactivator cDeactivatorZone1 = GameObject.Find("Zone1Intro").GetComponent <ColliderDeactivator>(); cDeactivatorZone1.OnExitPlayer(player); }
private void HandleCase2(GameObject player) { GameObject magePathBlocker = GameObject.Find("ParedMetalZonaSecretMage"); if (magePathBlocker) { Destroy(magePathBlocker); } ColliderDeactivator cDeactivatorZone1 = GameObject.Find("Zone1Intro").GetComponent <ColliderDeactivator>(); cDeactivatorZone1.OnExitPlayer(player); Debug.LogError("Must Implement ExitPlayer Zone 1"); }