/* * Transport the player to the correct warp if it detects that has change the scene */ private void SpawnPoint() { Debug.Log("Moving between Zones: " + GameManager.actualZone + " - " + GameManager.lastZone); GameObject warpGO = GameObject.Find(GameManager.actualZone.zoneName + "-" + GameManager.lastZone.zoneName); if (warpGO != null) { Warp warp = warpGO.GetComponent <Warp>(); warp.TransportPlayer(player); } GameManager.lastZone = null; GameManager.lastWarp = null; }