Example #1
0
 public void OnGameStartRPC()
 {
     LobbyView.Close();
     HudView.Open();
     Spawn();
     _scoreCoroutine = StartCoroutine(UpdateScore());
     if (PhotonNetwork.IsMasterClient)
     {
         Controller.Base = PhotonNetwork.Instantiate(BasePrefabPath, BasePoint.transform.position, Quaternion.identity).GetComponent <Base>();
         Controller.Base.Health.DieEvent += OnGameEnd;
         Controller.NewGame();
     }
 }