Exemplo n.º 1
0
    private void Start()
    {
        gdsm = GameDataStorageManager.Instance;

        if (gdsm.RoundCount == 0)
        {
            SyncItemButton();                 //ボタンを同期
            ShowBodyColorButtonsLeft();       //BodyColorボタンを表示(左側)
            ShowBodyColorButtonsRight();      //BodyColorボタンを表示(右側)
            customizePanel.SetActive(true);   //パネル表示
            Debug.Log("1ラウンド目なのでカスタムパネル表示");
        }
        else
        {
            customizePanel.SetActive(false);       //パネル非表示

            StartCoroutine(DelayMethod(0.1f, () => //(各クラスがGDSMをインスタンス化するまで待ってから読み込む)
            {
                ChangePlayerAppear();
                UIController.Instance.SyncMultiBattleIcons();
            }));

            Debug.Log("2ラウンド目なので保存している外見を反映");
        }
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        canLoadScene = false; //次のシーンロードを不可能にする

        gameDataStorageManager = GameDataStorageManager.Instance;
        SyncRoundStatus(); //ラウンド情報の取得とUIの更新

        Debug.Log(gameDataStorageManager.RoundCount + "ラウンド目");

        if (gameDataStorageManager.RoundCount > 2 || gameDataStorageManager.Character1WinCount >= 2 || gameDataStorageManager.Character2WinCount >= 2)
        {
            //バトル終了
            Debug.Log("試合停止");
        }
        else
        {
            //すぐにバトル初めていいなら
            if (canStartBattle || roundCount != 0)
            {
                StartBattle();
                Debug.Log("試合開始");
            }
            else
            {
                Debug.Log("カスタマイズ画面表示");
            }
        }

        //Debug.Log("TimeScaleリセット");
        Time.timeScale  = 1f; //Timescaleリセット
        timeElapsed     = 0f;
        canStartToCount = false;
    }
Exemplo n.º 3
0
    private void Start()
    {
        stage20HeartManager = buddyHeart.GetComponent <Stage20HeartManager>();

        gdsm = GameDataStorageManager.Instance;

        timelineAud.volume = 0;

        if (gdsm.CurrentCheckPoint > 2)
        {
            secondCamera.Priority = 11;
        }
    }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     gdsm = GameDataStorageManager.Instance;
     SetActivateStopButton(false);
     SetActivateStartButton(true);
     closeButton.SetActive(false);
     getItemPanel.SetActive(false); //獲得パネルを非表示
     if (moneyManager == null)
     {
         moneyManager = GameObject.FindGameObjectWithTag("MoneyManager").GetComponent <MoneyManager>(); //MoneyManagerを参照
     }
     //TestChoose();
 }
Exemplo n.º 5
0
    private void Start()
    {
        //============移動処理系===========
        col             = GetComponent <CapsuleCollider>();
        rb              = GetComponent <Rigidbody>();
        rb.centerOfMass = center.position; //重心の設定

        //============アニメーション処理系===========
        animator = GetComponent <Animator>();

        //============Costume処理系===========
        gdsm = GameDataStorageManager.Instance;

        //tagによって処理差別化
        string tag = this.tag;

        switch (tag)
        {
        case "Player":
            if (doRandom)
            {
                canAllRandom = false;
                RandomizeAppear();     //所持アイテムのなかからランダムで設定
            }
            else
            {
                SetPlayerAppear();     //設定しているアイテムを適用
            }
            break;

        case "Enemy":
            canAllRandom = true;
            RandomizeAppear();
            break;

        case "LeftPlayer":
            Debug.Log("パネルでの選択によって決定");
            break;

        case "RightPlayer":
            Debug.Log("パネルでの選択によって決定");
            break;

        default:
            SetPlayerAppear();
            Debug.Log("そんなタグ無いからプレイヤーの見た目を反映");
            break;
        }
    }
Exemplo n.º 6
0
    private void Start()
    {
        gdsm = GameDataStorageManager.Instance;

        stageNumText.text = stegeNum;

        //リトライ回数回数が3の倍数の場合はリトライボタン表示
        if (gdsm.RetryCount != 0 && gdsm.RetryCount % 3 == 0)
        {
            skipRecomButton.SetActive(true);
        }
        else
        {
            skipRecomButton.SetActive(false);
        }

        CheckVolumeSetting();
        FadeIn();
    }
Exemplo n.º 7
0
    private void Start()
    {
        GDSM_Instance = GameDataStorageManager.Instance;

        switch (GameStateManager.Instance.StateProperty)
        {
        case GameStateManager.GameState.Battle_Single:
            Invoke("SyncBattleIcons", 0.1f);
            break;

        case GameStateManager.GameState.Battle_Multi:
            SetActivatePlayerJoysticks(true);     //Joystick有効化
            Debug.Log("パネルで指示があるまで何もしない");
            break;

        default:
            Debug.Log("そんなステートではUIController使わない");
            break;
        }
    }
Exemplo n.º 8
0
    private void Start()
    {
        gdsm = GameDataStorageManager.Instance;

        if (gdsm.CurrentCheckPoint > 0)
        {
            stopTime = 102f;
            obstacles.RemoveRange(0, 2);
            obsAppearTime.Clear();

            foreach (var val in obsAppearTimeLatterHalf)
            {
                obsAppearTime.Add(val);
            }
        }

        if (gdsm.GetLatestClearedlevelNum >= 10)
        {
            GameManager.Instance.SetNextSceneName = "Stage_11";
        }
    }
Exemplo n.º 9
0
    public GameObject[] lockedBodyColorIcons; //BodyColorの未開放アイコン

    private void Start()
    {
        GDSM_Instance = GameDataStorageManager.Instance;
        ShowShopMenu(false);
        SyncAllShopInfo();
    }