Exemple #1
0
    public void Loadinfo()
    {
        animOnce = false;
        ReadyImage.SetActive(false);
        StartImage.GetComponent <RectTransform>().localPosition = new Vector3(350, -190, 0);

        createLoadObjects.Clear();
        SelectText(Stages);         //テキストを選択
        switch (Stages)
        {
        case SelectingLoad.Colloseum:
            LoadUI.SetActive(true);
            Game_UI.SetActive(false);
            createLoadObjects.Add(Instantiate(LoadColloseumCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));               //カメラ生成
            createLoadObjects.Add(Instantiate(LoadColloseum, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));                     //ステージ生成
            Stages = SelectingLoad.Colloseum;
            break;

        case SelectingLoad.HoruhoruMountain:
            LoadUI.SetActive(true);
            Game_UI.SetActive(false);
            createLoadObjects.Add(Instantiate(LoadHoruHoruCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));               //カメラ生成
            createLoadObjects.Add(Instantiate(LoadHoruHoru, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));                     //ステージ生成
            Stages = SelectingLoad.HoruhoruMountain;
            break;

        case SelectingLoad.ColdSleepMountain:
            LoadUI.SetActive(true);
            Game_UI.SetActive(false);
            createLoadObjects.Add(Instantiate(LoadColdSleepCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));               //カメラ生成
            createLoadObjects.Add(Instantiate(LoadColdSleep, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity));                     //ステージ生成
            Stages = SelectingLoad.ColdSleepMountain;
            break;
        }
        Canvas canvas = GameObject.Find("FadeCanvas").GetComponent <Canvas>();

        canvas.planeDistance = 150.0f;
        canvas.worldCamera   = createLoadObjects[0].GetComponentInChildren <Camera>();
    }
    public void Load()
    {
        switch (Stages)
        {
        case SelectingLoad.Colloseum:
            Instantiate(LoadColloseumCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);               //カメラ生成
            Instantiate(LoadColloseum, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);                     //ステージ生成
            Stages = SelectingLoad.Colloseum;
            break;

        case SelectingLoad.HoruhoruMountain:
            Instantiate(LoadHoruHoruCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);               //カメラ生成
            Instantiate(LoadHoruHoru, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);                     //ステージ生成
            Stages = SelectingLoad.HoruhoruMountain;
            break;

        case SelectingLoad.ColdSleepMountain:
            Instantiate(LoadColdSleepCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);               //カメラ生成
            Instantiate(LoadColdSleep, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);                     //ステージ生成
            Stages = SelectingLoad.ColdSleepMountain;
            break;
        }
    }
Exemple #3
0
    void SelectText(SelectingLoad nowLoad)
    {
        switch (nowLoad)
        {
        case SelectingLoad.Colloseum:
            CollseumText.SetActive(true);
            ColdSleepText.SetActive(false);
            HoruHoruText.SetActive(false);
            break;

        case SelectingLoad.HoruhoruMountain:
            HoruHoruText.SetActive(true);
            CollseumText.SetActive(false);
            ColdSleepText.SetActive(false);
            break;

        case SelectingLoad.ColdSleepMountain:
            ColdSleepText.SetActive(true);
            HoruHoruText.SetActive(false);
            CollseumText.SetActive(false);
            break;
        }
    }