Ejemplo n.º 1
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いろいろ表示
    }
Ejemplo n.º 2
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++;
            }
        }
    }