예제 #1
0
    public static void AddDeaths(this PhotonPlayer player, int deathsToAddToCurrent)
    {
        int current = player.GetDeaths();

        current = current + deathsToAddToCurrent;
        player.SetProperty(PhotonPlayerExtensions.deathsProp, current);
    }
 public static void UpdatePing(this PhotonPlayer player)
 {
     player.SetProperty(PlayerProperty.Ping, PhotonNetwork.GetPing());
 }
 public static void ClearProperty(this PhotonPlayer player, string key)
 {
     player.SetProperty(key, null);
 }
예제 #4
0
 public static void SetInvisibility(this PhotonPlayer player, bool enabled)
 {
     player.SetProperty(PhotonPlayerExtensions.invisibilityProp, enabled);
 }
예제 #5
0
 public static void SetIncreasedDamage(this PhotonPlayer player, bool enabled)
 {
     player.SetProperty(PhotonPlayerExtensions.increasedDamageProp, enabled);
 }
예제 #6
0
 public static void SetMaterialIndex(this PhotonPlayer player, int materialIndex)
 {
     player.SetProperty(PhotonPlayerExtensions.materialProp, materialIndex);
 }
예제 #7
0
 public static void SetDeaths(this PhotonPlayer player, int newDeaths)
 {
     player.SetProperty(PhotonPlayerExtensions.deathsProp, newDeaths);
 }