コード例 #1
0
	public static void switchWorlds (AGWorldIndex worldIndex) {
		switch (worldIndex) {
		case AGWorldIndex.k_JungleWorld:
			Application.LoadLevel("JungleWorldMenu");
			break;
		case AGWorldIndex.k_BeeWorld:
			Application.LoadLevel("BeeWorldMenu");
			break;
		case AGWorldIndex.k_ShapeWorld:
			Application.LoadLevel("ShapeWorldMenu");
			break;
		case AGWorldIndex.k_IckyWorld:
			Application.LoadLevel("IckyWorldMenu");
			break;
		case AGWorldIndex.k_FishWorld:
			Application.LoadLevel("FishWorldMenu");
			break;
		case AGWorldIndex.k_CircusWorld:
			Application.LoadLevel("CircusWorldMenu");
			break;
		case AGWorldIndex.k_VideoWorld:
			Application.LoadLevel("VideoWorldMenu");
			break;
			
		default:
			break;
		}
	}
コード例 #2
0
    public static void switchWorlds(AGWorldIndex worldIndex)
    {
        switch (worldIndex)
        {
        case AGWorldIndex.k_JungleWorld:
            Application.LoadLevel("JungleWorldMenu");
            break;

        case AGWorldIndex.k_BeeWorld:
            Application.LoadLevel("BeeWorldMenu");
            break;

        case AGWorldIndex.k_ShapeWorld:
            Application.LoadLevel("ShapeWorldMenu");
            break;

        case AGWorldIndex.k_IckyWorld:
            Application.LoadLevel("IckyWorldMenu");
            break;

        case AGWorldIndex.k_FishWorld:
            Application.LoadLevel("FishWorldMenu");
            break;

        case AGWorldIndex.k_CircusWorld:
            Application.LoadLevel("CircusWorldMenu");
            break;

        case AGWorldIndex.k_VideoWorld:
            Application.LoadLevel("VideoWorldMenu");
            break;

        default:
            break;
        }
    }