Ejemplo n.º 1
0
    void Start()                                        //最初作るとき                                        ここでかじた作のプレイヤー人数+を記憶
    {
        difficulty      = TitleSystem.Get_Difficulty(); // タイトルシステムから難易度の変数を読み込む。
        playerCount     = TitleSystem.Get_Member();
        MonsterCount    = MonsterMax[difficulty];
        presentBoxCount = presentBoxMax[difficulty];
        trapCount       = trapMax[difficulty];
        UI_Con          = GameObject.Find("UI_Controller");

        Floor = 0;
        for (int i = 0; i < ivent.GetLength(0); i++)
        {
            for (int j = 0; j < ivent.GetLength(1); j++)
            {
                ivent[i, j] = nullObject;
            }
        }
        oil = new float[playerCount];
        StairsUP();

        difficulty = TitleSystem.Get_Difficulty(); // タイトルシステムから難易度の変数を読み込む。
        for (int i = 0; i < playerCount; i++)
        {
            getPlayer[i].GetComponent <Oil_Controller>().set_InitialOil(difficulty);
            onetime = true;
        }
    }
Ejemplo n.º 2
0
    void OnAnimationFinished()
    {
        if (m_nextObject)
        {
            m_nextObject.SetActive(true);
        }
        else
        {
            TitleSystem titleSystem = FindObjectOfType(typeof(TitleSystem)) as TitleSystem;
            titleSystem.CutTitle();
        }

        this.gameObject.SetActive(false);
    }
Ejemplo n.º 3
0
    void Join()
    {
        if (Input.GetButtonDown("P1_D") && P1_join == false)
        {
            Member++;
            P1_join = true;
            this.P1entry.GetComponent <Text>().text = "1P OK";
        }

        else if (Input.GetButtonDown("P2_D") && P2_join == false)
        {
            Member++;
            P2_join = true;
            this.P2entry.GetComponent <Text>().text = "2P OK";
        }

        else if (Input.GetButtonDown("P3_D") && P3_join == false)
        {
            Member++;
            P3_join = true;
            this.P3entry.GetComponent <Text>().text = "3P OK";
        }

        else if (Input.GetButtonDown("P4_D") && P4_join == false)
        {
            Member++;
            P4_join = true;
            this.P4entry.GetComponent <Text>().text = "4P OK";
        }

        if (Input.GetButtonDown("Cancel"))
        {
            TitleSystem.Set_Member(Member);
            SceneManager.LoadScene("GameMain");
        }
    }
Ejemplo n.º 4
0
 void Start()
 {
     difficulty = TitleSystem.Get_Difficulty(); // タイトルシステムから難易度の変数を読み込む。
     Enemy1     = Enemy1difficulty[difficulty];
     Enemy2     = Enemy2difficulty[difficulty];
 }
Ejemplo n.º 5
0
 void Start()
 {
     difficulty = TitleSystem.Get_Difficulty(); // タイトルシステムから難易度の変数を読み込む。
     HP         = HPdifficulty[difficulty];
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     player_num = TitleSystem.Get_Member();
     BGM        = GameObject.Find("soundContolloer").GetComponent <soundContolloer>();
     BGM.select_BGM(1);
 }