2025-04-16 19:20:36 -04:00
### YamlMime:ManagedReference
items :
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem
commentId : T:Player.UseItem
2025-04-16 19:20:36 -04:00
id : UseItem
2025-04-16 19:57:54 -04:00
parent : Player
2025-04-16 19:20:36 -04:00
children :
2025-04-16 19:57:54 -04:00
- Player.UseItem.DropItem
- Player.UseItem.head
- Player.UseItem.holdTime
- Player.UseItem.IsHoldingItem
- Player.UseItem.PickUpItem(GameObject)
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : UseItem
nameWithType : UseItem
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem
2025-04-16 19:20:36 -04:00
type : Class
source :
id : UseItem
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4518
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nThis class allows a player to pick up, hold, and drop items during the game.\nIt is primarily used for managing interactions with the "hat" in "keep-away" mode.\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content: 'public class UseItem : MonoBehaviour'
content.vb : Public Class UseItem Inherits MonoBehaviour
inheritance :
- System.Object
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem.holdTime
commentId : F:Player.UseItem.holdTime
2025-04-16 19:20:36 -04:00
id : holdTime
2025-04-16 19:57:54 -04:00
parent : Player.UseItem
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : holdTime
nameWithType : UseItem.holdTime
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.holdTime
2025-04-16 19:20:36 -04:00
type : Field
source :
id : holdTime
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4543
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nThe total time the player has held the item.\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content : public float holdTime
return :
type : System.Single
content.vb : Public holdTime As Single
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem.head
commentId : F:Player.UseItem.head
2025-04-16 19:20:36 -04:00
id : head
2025-04-16 19:57:54 -04:00
parent : Player.UseItem
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : head
nameWithType : UseItem.head
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.head
2025-04-16 19:20:36 -04:00
type : Field
source :
id : head
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4553
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nThe position where the item will be held (e.g., above the player's head).\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content : public Transform head
return :
type : Global.Transform
content.vb : Public head As Transform
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem.PickUpItem(GameObject)
commentId : M:Player.UseItem.PickUpItem(GameObject)
2025-04-16 19:20:36 -04:00
id : PickUpItem(GameObject)
2025-04-16 19:57:54 -04:00
parent : Player.UseItem
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : PickUpItem(GameObject)
nameWithType : UseItem.PickUpItem(GameObject)
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.PickUpItem(GameObject)
2025-04-16 19:20:36 -04:00
type : Method
source :
id : PickUpItem
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4614
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nAllows the player to pick up an item and start the hold timer.\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content : public void PickUpItem(GameObject item)
parameters :
- id : item
type : Global.GameObject
2025-04-18 20:11:19 -04:00
description : The item to pick up.
2025-04-16 19:20:36 -04:00
content.vb : Public Sub PickUpItem(item As GameObject)
2025-04-16 19:57:54 -04:00
overload : Player.UseItem.PickUpItem*
- uid : Player.UseItem.DropItem
commentId : M:Player.UseItem.DropItem
2025-04-16 19:20:36 -04:00
id : DropItem
2025-04-16 19:57:54 -04:00
parent : Player.UseItem
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : DropItem()
nameWithType : UseItem.DropItem()
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.DropItem()
2025-04-16 19:20:36 -04:00
type : Method
source :
id : DropItem
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4646
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nAllows the player to drop the item they are holding.\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content : public void DropItem()
content.vb : Public Sub DropItem()
2025-04-16 19:57:54 -04:00
overload : Player.UseItem.DropItem*
- uid : Player.UseItem.IsHoldingItem
commentId : M:Player.UseItem.IsHoldingItem
2025-04-16 19:20:36 -04:00
id : IsHoldingItem
2025-04-16 19:57:54 -04:00
parent : Player.UseItem
2025-04-16 19:20:36 -04:00
langs :
- csharp
- vb
name : IsHoldingItem()
nameWithType : UseItem.IsHoldingItem()
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.IsHoldingItem()
2025-04-16 19:20:36 -04:00
type : Method
source :
id : IsHoldingItem
path : ''
2025-04-19 12:59:07 -04:00
startLine : 4694
2025-04-16 19:20:36 -04:00
assemblies :
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace : Player
2025-04-18 20:11:19 -04:00
summary : "\nChecks if the player is currently holding an item.\n"
example : [ ]
2025-04-16 19:20:36 -04:00
syntax :
content : public bool IsHoldingItem()
return :
type : System.Boolean
2025-04-18 20:11:19 -04:00
description : True if the player is holding an item, false otherwise.
2025-04-16 19:20:36 -04:00
content.vb : Public Function IsHoldingItem() As Boolean
2025-04-16 19:57:54 -04:00
overload : Player.UseItem.IsHoldingItem*
2025-04-16 19:20:36 -04:00
references :
2025-04-16 19:57:54 -04:00
- uid : Player
commentId : N : Player
name : Player
nameWithType : Player
fullName : Player
2025-04-16 19:20:36 -04:00
- uid : System.Object
commentId : T:System.Object
parent : System
isExternal : true
name : object
nameWithType : object
fullName : object
nameWithType.vb : Object
fullName.vb : Object
name.vb : Object
- uid : System
commentId : N : System
isExternal : true
name : System
nameWithType : System
fullName : System
- uid : System.Single
commentId : T:System.Single
parent : System
isExternal : true
name : float
nameWithType : float
fullName : float
nameWithType.vb : Single
fullName.vb : Single
name.vb : Single
- uid : Global.Transform
isExternal : true
name : Transform
nameWithType : Transform
fullName : Transform
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem.PickUpItem*
commentId : Overload:Player.UseItem.PickUpItem
2025-04-16 19:20:36 -04:00
name : PickUpItem
nameWithType : UseItem.PickUpItem
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.PickUpItem
2025-04-16 19:20:36 -04:00
- uid : Global.GameObject
isExternal : true
name : GameObject
nameWithType : GameObject
fullName : GameObject
2025-04-16 19:57:54 -04:00
- uid : Player.UseItem.DropItem*
commentId : Overload:Player.UseItem.DropItem
2025-04-16 19:20:36 -04:00
name : DropItem
nameWithType : UseItem.DropItem
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.DropItem
- uid : Player.UseItem.IsHoldingItem*
commentId : Overload:Player.UseItem.IsHoldingItem
2025-04-16 19:20:36 -04:00
name : IsHoldingItem
nameWithType : UseItem.IsHoldingItem
2025-04-16 19:57:54 -04:00
fullName : Player.UseItem.IsHoldingItem
2025-04-16 19:20:36 -04:00
- uid : System.Boolean
commentId : T:System.Boolean
parent : System
isExternal : true
name : bool
nameWithType : bool
fullName : bool
nameWithType.vb : Boolean
fullName.vb : Boolean
name.vb : Boolean