Exemplo n.º 1
0
 public void BackMainMenu()
 {
     MainUI.SetActive(true);
     RankingUI.SetActive(true);
     NameInputUI.SetActive(false);
     WaveUI.SetActive(false);
 }
Exemplo n.º 2
0
    public void close()
    {
        //텍스트필드 내용 저장
        if (TMPtext.text.Length > 0)
        {
            // 유저 닉네임변수 = TMPtext.text;
            //rect.position = new Vector3((float)-2.7, 18, 0);
            completeUI.SetActive(false);
            RankingUI.SetActive(true);
            rect.sizeDelta = new Vector2(rect.sizeDelta.x, 545);
            CloseAllLayouts();
        }

        //ui 원상복귀, 끄고, 랭킹저장, 랭킹 ui 띄우기
    }
Exemplo n.º 3
0
 public void MainMenuActive()
 {
     MainUI.SetActive(true);
     RankingUI.SetActive(true);
     ResultUI.SetActive(false);
 }
Exemplo n.º 4
0
    public void WaveStartUp(string Wave)
    {
        switch (Wave)
        {
        case "normal":
            WaveStart(WaveState.NormalWave);
            break;

        case "hard":
            WaveStart(WaveState.HardWave);
            break;

        case "master":
            WaveStart(WaveState.MasterWave);
            break;
        }
        Debug.Log("ウェーブ起動");
        Initialize();
        //ウェーブ起動
        //
        BGMSource.clip = BGMs[1];
        BGMSource.Play();
        MainUI.SetActive(false);
        RankingUI.SetActive(false);
        DifficultyUI.SetActive(false);
        SettingPanel.SetActive(false);
        WaveUI.SetActive(true);

        RightPointer.enabled = false;
        LeftPointer.enabled  = false;

        Rightgun.ShotPos.GetChild(0).gameObject.SetActive(false);
        LeftGun.ShotPos.GetChild(0).gameObject.SetActive(false);

        if (_wavestate == WaveState.NormalWave)
        {
            Rightgun.SSwitch   = true;
            LeftGun.SSwitch    = true;
            RemainLife         = 3;
            BULLETTIME.Bswitch = true;
            lifetext.text      = "LIFE:" + RemainLife.ToString();
        }
        else if (_wavestate == WaveState.HardWave)
        {
            Rightgun.SSwitch   = true;
            LeftGun.SSwitch    = true;
            RemainLife         = 3;
            BULLETTIME.Bswitch = false;
            lifetext.text      = "LIFE:" + RemainLife.ToString();
        }
        else if (_wavestate == WaveState.MasterWave)
        {
            //Gunで盾オフにする
            Rightgun.SSwitch   = false;
            LeftGun.SSwitch    = false;
            RemainLife         = 1;
            BULLETTIME.Bswitch = false;
            lifetext.text      = "LIFE:" + RemainLife.ToString();
        }
        waveing = true;
        //UIいろいろ表示
    }
Exemplo n.º 5
0
    private void Start()
    {
        //    Scores =  new Dictionary<int, string>
        //{
        //    {100,"AAA"},
        //    {200,"BBB"},
        //    {300,"CCC"},
        //    {400,"DDD"},
        //    {500,"EEE"},
        //    {600,"FFF"},
        //    {700,"GGG"},
        //    {800,"HHH"},
        //    {900,"III"},
        //    {000,"JJJ"},
        //};
        BGMSource.clip = BGMs[0];
        BGMSource.Play();

        LeftPointer.enabled  = true;
        RightPointer.enabled = true;

        //for(int i = 0; i < Lasers.Capacity; i++)
        //{
        //    Lasers[i].gameObject.SetActive(true);
        //}

        RightControllermodel.SetActive(false);
        LeftControllermodel.SetActive(false);
        MainUI.SetActive(true);
        RankingUI.SetActive(true);
        DifficultyUI.SetActive(false);
        SettingPanel.SetActive(false);
        WaveUI.SetActive(false);
        NameInputUI.SetActive(false);
        WaveUI.SetActive(false);

        Rightgun.SSwitch = true;
        LeftGun.SSwitch  = true;

        BULLETTIME.Bswitch = false;
        //Rightgun.ShotPos.GetChild(0).gameObject.SetActive(true);
        //LeftGun.ShotPos.GetChild(0).gameObject.SetActive(true);
        Load();

        Entity_Sheet1.sheets[0].list.Sort((a, b) => a.Score + b.Score);
        foreach (Entity_Sheet1.Sheet localdatasheet in Entity_Sheet1.sheets)
        {
            int i = 0;
            if (localdatasheet.list.Count == 0)
            {
                for (int num = 0; num < 10; num++)
                {
                    NamesText[num].text  = "AAA";
                    Modestext[num].text  = "normal";
                    Scorestext[num].text = "0";
                }
                break;
            }
            foreach (Entity_Sheet1.Param localdataparam in localdatasheet.list)
            {
                NamesText[i].text  = localdataparam.Name;
                Modestext[i].text  = localdataparam.Mode;
                Scorestext[i].text = localdataparam.Score.ToString();
                if (i == 9)
                {
                    break;
                }
                i++;
            }
        }
    }