Example #1
0
 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);
 }
Example #3
0
    public void OffensiveOccuppied(EPlayerController controller)
    {
        int tID = controller.GetComponent <PhotonView>().ViewID;

        pView.RPC("RPC_OffensiveOccupied", RpcTarget.All, tID);
    }