/// <summary> /// メニューのPrefabを設定する /// </summary> /// <param name="type"></param> private void SetPrefab(Pong.MainmenuConstant.Type type) { if (type == Pong.MainmenuConstant.Type.PlayerModeSelect) { SetPlayerSelectPrefab(); return; } if (type == Pong.MainmenuConstant.Type.PvcCpuLevelSelect) { SetPvcCpuSelectPrefab(); return; } if (type == Pong.MainmenuConstant.Type.CvcCpuLevelSelect1) { SetCvcCpuSelect1Prefab(); return; } if (type == Pong.MainmenuConstant.Type.CvcCpuLevelSelect2) { SetCvcCpuSelect2Prefab(); return; } if (type == Pong.MainmenuConstant.Type.ConfirmPlay) { SetConfirmPlayPrefab(); return; } }
/// <summary> /// Prefabの切り替え /// </summary> /// <param name="nextType">次のPrefabのタイプ</param> private void SwitchPrefab(Pong.MainmenuConstant.Type nextType) { // 現在使用中のPrefabを開放 UnsetPrefab(); // 指定されたPrefabを設定 type = nextType; SetPrefab(type); }
public MainmenuTask() { //type = Pong.MainmenuConstant.Type.None; type = Pong.MainmenuConstant.Type.PlayerModeSelect; mode = Pong.MainmenuTask.Mode.PvC; }