예제 #1
0
 void Start()
 {
     Debug.Log("zizideck called");
     md = GameObject.Find("ModeData").GetComponent <ModeData>();
     if (!md.IsSolo() && md.IsHost())
     {
         seed = UnityEngine.Random.Range(0, 10000);
         PhotonView view = GetComponent <PhotonView>();
         ShufflePlayers(md.numOfPlayer);
         view.RPC("SendSeed", PhotonTargets.All, seed, md.numOfPlayer, md.playerInfo);
     }
     else if (md.IsSolo())
     {
         Shuffle();
     }
 }
예제 #2
0
 void Start()
 {
     Debug.Log("zizideck called");
     md = GameObject.Find("ModeData").GetComponent <ModeData>();
     if (!md.IsSolo() && md.player == 0)
     {
         numOfPlayer = md.numOfPlayer;
         seed        = Random.Range(0, 10000);
         PhotonView view = GetComponent <PhotonView>();
         view.RPC("SendSeed", PhotonTargets.All, seed);
     }
     else if (md.IsSolo())
     {
         Shuffle();
     }
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     md = GameObject.Find("ModeData").GetComponent <ModeData>();
     if (!md.IsHost() && !md.IsSolo())
     {
         comDrawbtn.SetActive(false);
     }
     if (md.IsSolo())
     {
         comDrawbtn.SetActive(true);
     }
     canvasStart = GameObject.Find("Canvas_0");
     canvasStart.SetActive(true);
     setP = GameObject.Find("SettingPanel");
     setP.SetActive(false);
     setB = GameObject.Find("SettingButton");
     setB.SetActive(true);
     gameoverP = GameObject.Find("GameOverPanel");
     gameoverP.SetActive(false);
     //debugP = GameObject.Find("debugPanel");
     //debugP.SetActive(false);
 }