Class Pickup
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class Pickup : Interactable
- Inheritance
-
Pickup
- Inherited Members
-
- Extension Methods
-
Constructors
Pickup()
Fields
instanceData
public ItemInstanceData instanceData
Field Value
- ItemInstanceData
itemInstance
public ItemInstance itemInstance
Field Value
- ItemInstance
lastPos
Field Value
- Vector3
m_itemID
Field Value
- byte
m_photonView
public PhotonView m_photonView
Field Value
- PhotonView
m_rigidbody
public Rigidbody m_rigidbody
Field Value
- Rigidbody
Properties
Rigidbody
public Rigidbody Rigidbody { get; }
Property Value
- Rigidbody
Methods
Awake()
public override void Awake()
public void ConfigurePickup(byte itemID, ItemInstanceData data)
Parameters
itemID
byte
data
ItemInstanceData
public void ConfigurePickup(byte itemID, ItemInstanceData data, Vector3 vel, Vector3 angVel)
Parameters
itemID
byte
data
ItemInstanceData
vel
Vector3
angVel
Vector3
ForceSync()
Interact(Player)
public override void Interact(Player player)
Parameters
player
Player
OnDisable()
OnEnable()
OnEndHover(Player)
public override void OnEndHover(Player player)
Parameters
player
Player
OnStartHover(Player)
public override void OnStartHover(Player player)
Parameters
player
Player
[PunRPC]
public void RPC_ConfigurePickup(byte itemID, byte[] data)
Parameters
itemID
byte
data
byte[]
RPC_FailedToPickup()
[PunRPC]
public void RPC_FailedToPickup()
RPC_ForceSync(Vector3, Quaternion)
[PunRPC]
public void RPC_ForceSync(Vector3 pos, Quaternion rot)
Parameters
pos
Vector3
rot
Quaternion
RPC_Remove()
[PunRPC]
public void RPC_Remove()
RPC_RequestPickup(int)
[PunRPC]
public void RPC_RequestPickup(int photonView)
Parameters
photonView
int
RPC_SetVelocity(Vector3, Vector3)
[PunRPC]
public void RPC_SetVelocity(Vector3 vel, Vector3 angVel)
Parameters
vel
Vector3
angVel
Vector3
Start()