public void SetOwner(EPlayerController own) { if (pView.IsMine) { pView.RPC("RPC_SetOwner", RpcTarget.All, own.GetComponent <PhotonView>().ViewID); } }
public override void PerformAttack() { if (!nozzleRotator.enabled) { nozzleRotator.enabled = true; nozzleRotator.target = playerToAttack.transform; nozzleRotator.shouldRotate = true; } pView.RPC("RPC_SpawnHoming", RpcTarget.All, owner.GetNetworkID(), playerToAttack.GetComponent <PhotonView>().ViewID); }
public void OffensiveOccuppied(EPlayerController controller) { int tID = controller.GetComponent <PhotonView>().ViewID; pView.RPC("RPC_OffensiveOccupied", RpcTarget.All, tID); }