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); }
public static void SetInvisibility(this PhotonPlayer player, bool enabled) { player.SetProperty(PhotonPlayerExtensions.invisibilityProp, enabled); }
public static void SetIncreasedDamage(this PhotonPlayer player, bool enabled) { player.SetProperty(PhotonPlayerExtensions.increasedDamageProp, enabled); }
public static void SetMaterialIndex(this PhotonPlayer player, int materialIndex) { player.SetProperty(PhotonPlayerExtensions.materialProp, materialIndex); }
public static void SetDeaths(this PhotonPlayer player, int newDeaths) { player.SetProperty(PhotonPlayerExtensions.deathsProp, newDeaths); }