public void SyncKillRPC(int attackerViewID) { var attacker = PhotonView.Find(attackerViewID).gameObject.GetComponent <IAttacker>(); Assert.IsNotNull(attacker); BattleStream.OnNextKill(attacker); }
public void SyncDieRPC(int targetViewID) { var target = PhotonView.Find(targetViewID).gameObject.GetComponent <IOnAttacked>(); Assert.IsNotNull(target); BattleStream.OnNextDie(target); }