Beispiel #1
0
    public void OnPhotonPlayerPropertiesChanged(Player target, ExitGames.Client.Photon.Hashtable changedProps)
    {
#if GR
        if (GetGameMode != GameMode.GR)
        {
            return;
        }

        if (changedProps.ContainsKey(PropertiesKeys.KillsKey))
        {
            if (GetWinnerPlayer.GetKills() >= GunOrderList.Count)
            {
                OnPlayerWon();
                return;
            }
            ScoreText.text = string.Format(bl_GameTexts.GRPlayerWinning, GetWinnerPlayer.NickName, GetWinnerPlayer.GetKills() + 1, GunOrderList.Count);
        }
#endif
    }
Beispiel #2
0
    /// <summary>
    ///
    /// </summary>
    protected override void Awake()
    {
        if (!PhotonNetwork.IsConnected || !PhotonNetwork.InRoom)
        {
            return;
        }

        base.Awake();
        GameManager = bl_GameManager.Instance;
        TimeManager = bl_MatchTimeManager.Instance;
        Initialize();
        ScoreText.text = string.Format(bl_GameTexts.GRPlayerWinning, GetWinnerPlayer.NickName, GetWinnerPlayer.GetKills() + 1, GunOrderList.Count);
    }