Ejemplo n.º 1
0
 /// <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;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Prefabの切り替え
 /// </summary>
 /// <param name="nextType">次のPrefabのタイプ</param>
 private void SwitchPrefab(Pong.MainmenuConstant.Type nextType)
 {
     // 現在使用中のPrefabを開放
     UnsetPrefab();
     // 指定されたPrefabを設定
     type = nextType;
     SetPrefab(type);
 }
Ejemplo n.º 3
0
 public MainmenuTask()
 {
     //type = Pong.MainmenuConstant.Type.None;
     type = Pong.MainmenuConstant.Type.PlayerModeSelect;
     mode = Pong.MainmenuTask.Mode.PvC;
 }