Example #1
0
 public void Throw(Throwable item)
 {
     // sets the Inverse Kinematics to false so the player's hand can be reset to normal
     GetComponent <IkBehaviour>().ikActive = false;
     // player no longer holding any item
     currentHeldItem = null;
     // resets the item's conditions as it is no longer picked up
     item.ItemDropped(this);
     // disables fake rock
     actualCamera.transform.GetChild(0).gameObject.SetActive(false);
     photonView.RPC("ThrowRPC", RpcTarget.All, item.transform.GetComponent <PhotonView>().ViewID);
 }