Class PlayerItems
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class PlayerItems : MonoBehaviour
- Inheritance
-
PlayerItems
- Inherited Members
-
- Extension Methods
-
Constructors
PlayerItems()
Fields
itemBodypart
public Bodypart itemBodypart
Field Value
- Bodypart
m_displayingSlot
public int m_displayingSlot
Field Value
- int
player
Field Value
- Player
shakeTime
Field Value
- float
targetHandGizmo
public Transform targetHandGizmo
Field Value
- Transform
Methods
ChangeToSlot(int)
public void ChangeToSlot(int slotID)
Parameters
slotID int
DropItem(int, bool)
public void DropItem(int slotID, bool notCurrentItem = false)
Parameters
slotID int
notCurrentItem bool
Equip(ItemDescriptor)
public void Equip(ItemDescriptor itemDescriptor)
Parameters
itemDescriptor ItemDescriptor
EquipItem(ItemDescriptor)
public void EquipItem(ItemDescriptor item)
Parameters
item ItemDescriptor
FixedUpdate()
public void FixedUpdate()
GetSpawnPos(Item)
public Vector3 GetSpawnPos(Item item)
Parameters
item Item
Returns
- Vector3
GetSpawnRot(Item)
public Quaternion GetSpawnRot(Item item)
Parameters
item Item
Returns
- Quaternion
Start()
Unequip()
Update()