Example #1
0
 public virtual void Action(InteracterScript caller)
 {
     if (activate != null)
     {
         photonView.RPC("CallAction", RpcTarget.All);
     }
     else
     {
         Debug.Log("Não existe função escrita no activate");
     }
 }
Example #2
0
 public override void Action(InteracterScript caller)
 {
     if (caller.grabbed.tag == "Key")
     {
         foreach (Transform x in OwnedKeys)
         {
             if (caller.grabbed.transform == x)
             {
                 photonView.RPC("AddKey", RpcTarget.All, caller.grabbed.GetComponent <PhotonView>().ViewID, caller.photonView.ViewID);
                 if (keyAmount >= maxKeys)
                 {
                     base.Action(caller);
                 }
             }
         }
     }
 }
 public override void Action(InteracterScript caller)
 {
     dad.Action(caller);
 }
Example #4
0
 // Update is called once per frame
 public override void Action(InteracterScript caller)
 {
     photonView.RPC("abrirArmario", RpcTarget.All);
 }