コード例 #1
0
        void Start()
        {
            BGM_SE_Manager = GameObject.Find("BGM_SE_Manager");
            BGM_SE_MSC     = BGM_SE_Manager.GetComponent <BGM_SE_Manager>();

            //EntryCheck();
            Debug.Log("TestRoomController 出席確認");
            allPlayers = PhotonNetwork.PlayerList; // プレイヤーの配列(自身を含む)
            Debug.Log(allPlayers.Length + ": allPlayers.Length");
            SelectJankenMSC = SelectJankenManager.GetComponent <SelectJanken>();

            /*
             * Text_PName1 = Text_PName1.GetComponent<Text>();
             * Text_PName2 = Text_PName2.GetComponent<Text>();
             * Text_PName3 = Text_PName3.GetComponent<Text>();
             * Text_PName4 = Text_PName4.GetComponent<Text>();
             */
            UpdateMemberList();
            string_PName1 = allPlayers[0].NickName;
            Debug.Log(string_PName1 + ": string_PName1");
            string_PID1 = allPlayers[0].UserId;
            Debug.Log(string_PID1 + ": string_PID1");
            SelectJankenMSC.Share_AcutivePlayerID();
            EntryCheck();
            PNameCheck();
            Set_PNameTextAll();
            //ToSet_MyHeadName();
        }
コード例 #2
0
        public void EntryCheck()
        {
            Debug.Log(" === EntryCheck スタート! === ");
            SelectJankenMSC.Share_AcutivePlayerID();

            /*
             * if (string_PlayerID_1 == "")
             * {
             *  string_PlayerID_1 = SelectJankenMSC.senderID;
             * }
             * else if (string_PlayerID_2 == "")
             * {
             *  string_PlayerID_2 = SelectJankenMSC.senderID;
             * }
             * else if (string_PlayerID_3 == "")
             * {
             *  string_PlayerID_3 = SelectJankenMSC.senderID;
             * }
             * else if (string_PlayerID_4 == "")
             * {
             *  string_PlayerID_4 = SelectJankenMSC.senderID;
             * }
             * else
             * {
             *  Debug.Log(" EntryCheck 不要です");
             * }
             */

            PresentMemberCheck();
            Debug.Log(" === EntryCheck 終わり! === ");
        }