Files
Crash-Course/Documentation/api/Game.HatRespawn.yml

240 lines
5.8 KiB
YAML
Raw Permalink Normal View History

2025-04-16 19:20:36 -04:00
### YamlMime:ManagedReference
items:
2025-04-16 19:57:54 -04:00
- uid: Game.HatRespawn
commentId: T:Game.HatRespawn
2025-04-16 19:20:36 -04:00
id: HatRespawn
2025-04-16 19:57:54 -04:00
parent: Game
2025-04-16 19:20:36 -04:00
children:
2025-04-16 19:57:54 -04:00
- Game.HatRespawn.canBePickedUp
2025-04-18 20:11:19 -04:00
- Game.HatRespawn.initialScale
- Game.HatRespawn.initialSubhatPosition
2025-04-16 19:57:54 -04:00
- Game.HatRespawn.Interact
- Game.HatRespawn.OnHatDropped
- Game.HatRespawn.respawnTime
2025-04-16 19:20:36 -04:00
langs:
- csharp
- vb
name: HatRespawn
nameWithType: HatRespawn
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn
2025-04-16 19:20:36 -04:00
type: Class
source:
id: HatRespawn
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2502
2025-04-16 19:20:36 -04:00
assemblies:
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace: Game
2025-04-18 20:11:19 -04:00
summary: "\nThis class manages the behavior of the hat in the game, including its respawn logic.\nThe hat can be picked up, dropped, and respawned after a certain amount of time.\n"
example: []
2025-04-16 19:20:36 -04:00
syntax:
content: 'public class HatRespawn : MonoBehaviour'
content.vb: Public Class HatRespawn Inherits MonoBehaviour
inheritance:
- System.Object
2025-04-16 19:57:54 -04:00
- uid: Game.HatRespawn.respawnTime
commentId: F:Game.HatRespawn.respawnTime
2025-04-16 19:20:36 -04:00
id: respawnTime
2025-04-16 19:57:54 -04:00
parent: Game.HatRespawn
2025-04-16 19:20:36 -04:00
langs:
- csharp
- vb
name: respawnTime
nameWithType: HatRespawn.respawnTime
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.respawnTime
2025-04-16 19:20:36 -04:00
type: Field
source:
id: respawnTime
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2512
2025-04-16 19:20:36 -04:00
assemblies:
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace: Game
2025-04-18 20:11:19 -04:00
summary: "\nThe amount of time (in seconds) before the hat respawns after being inactive.\n"
example: []
2025-04-16 19:20:36 -04:00
syntax:
content: public const float respawnTime = 10
return:
type: System.Single
content.vb: Public Const respawnTime As Single = 10
2025-04-18 20:11:19 -04:00
- uid: Game.HatRespawn.initialSubhatPosition
commentId: F:Game.HatRespawn.initialSubhatPosition
id: initialSubhatPosition
parent: Game.HatRespawn
langs:
- csharp
- vb
name: initialSubhatPosition
nameWithType: HatRespawn.initialSubhatPosition
fullName: Game.HatRespawn.initialSubhatPosition
type: Field
source:
id: initialSubhatPosition
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2522
2025-04-18 20:11:19 -04:00
assemblies:
- cs.temp.dll
namespace: Game
summary: "\nThe initial position of the subhat (if applicable).\n"
example: []
syntax:
content: public Vector2 initialSubhatPosition
return:
type: Global.Vector2
content.vb: Public initialSubhatPosition As Vector2
2025-04-16 19:57:54 -04:00
- uid: Game.HatRespawn.canBePickedUp
commentId: F:Game.HatRespawn.canBePickedUp
2025-04-16 19:20:36 -04:00
id: canBePickedUp
2025-04-16 19:57:54 -04:00
parent: Game.HatRespawn
2025-04-16 19:20:36 -04:00
langs:
- csharp
- vb
name: canBePickedUp
nameWithType: HatRespawn.canBePickedUp
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.canBePickedUp
2025-04-16 19:20:36 -04:00
type: Field
source:
id: canBePickedUp
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2527
2025-04-16 19:20:36 -04:00
assemblies:
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace: Game
2025-04-18 20:11:19 -04:00
summary: "\nA flag to check if the hat can be picked up.\n"
example: []
2025-04-16 19:20:36 -04:00
syntax:
content: public static bool canBePickedUp
return:
type: System.Boolean
content.vb: Public Shared canBePickedUp As Boolean
2025-04-18 20:11:19 -04:00
- uid: Game.HatRespawn.initialScale
commentId: F:Game.HatRespawn.initialScale
id: initialScale
parent: Game.HatRespawn
langs:
- csharp
- vb
name: initialScale
nameWithType: HatRespawn.initialScale
fullName: Game.HatRespawn.initialScale
type: Field
source:
id: initialScale
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2532
2025-04-18 20:11:19 -04:00
assemblies:
- cs.temp.dll
namespace: Game
summary: "\nThe initial scale of the hat.\n"
example: []
syntax:
content: public Vector2 initialScale
return:
type: Global.Vector2
content.vb: Public initialScale As Vector2
2025-04-16 19:57:54 -04:00
- uid: Game.HatRespawn.Interact
commentId: M:Game.HatRespawn.Interact
2025-04-16 19:20:36 -04:00
id: Interact
2025-04-16 19:57:54 -04:00
parent: Game.HatRespawn
2025-04-16 19:20:36 -04:00
langs:
- csharp
- vb
name: Interact()
nameWithType: HatRespawn.Interact()
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.Interact()
2025-04-16 19:20:36 -04:00
type: Method
source:
id: Interact
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2588
2025-04-16 19:20:36 -04:00
assemblies:
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace: Game
2025-04-18 20:11:19 -04:00
summary: "\nUpdates the last interaction time when a player interacts with the hat.\n"
example: []
2025-04-16 19:20:36 -04:00
syntax:
content: public void Interact()
content.vb: Public Sub Interact()
2025-04-16 19:57:54 -04:00
overload: Game.HatRespawn.Interact*
- uid: Game.HatRespawn.OnHatDropped
commentId: M:Game.HatRespawn.OnHatDropped
2025-04-16 19:20:36 -04:00
id: OnHatDropped
2025-04-16 19:57:54 -04:00
parent: Game.HatRespawn
2025-04-16 19:20:36 -04:00
langs:
- csharp
- vb
name: OnHatDropped()
nameWithType: HatRespawn.OnHatDropped()
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.OnHatDropped()
2025-04-16 19:20:36 -04:00
type: Method
source:
id: OnHatDropped
path: ''
2025-04-19 12:59:07 -04:00
startLine: 2597
2025-04-16 19:20:36 -04:00
assemblies:
- cs.temp.dll
2025-04-16 19:57:54 -04:00
namespace: Game
2025-04-18 20:11:19 -04:00
summary: "\nMarks the hat as dropped and resets the timer.\n"
example: []
2025-04-16 19:20:36 -04:00
syntax:
content: public void OnHatDropped()
content.vb: Public Sub OnHatDropped()
2025-04-16 19:57:54 -04:00
overload: Game.HatRespawn.OnHatDropped*
2025-04-16 19:20:36 -04:00
references:
2025-04-16 19:57:54 -04:00
- uid: Game
commentId: N:Game
name: Game
nameWithType: Game
fullName: Game
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
2025-04-18 20:11:19 -04:00
- uid: Global.Vector2
isExternal: true
name: Vector2
nameWithType: Vector2
fullName: Vector2
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
2025-04-16 19:57:54 -04:00
- uid: Game.HatRespawn.Interact*
commentId: Overload:Game.HatRespawn.Interact
2025-04-16 19:20:36 -04:00
name: Interact
nameWithType: HatRespawn.Interact
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.Interact
- uid: Game.HatRespawn.OnHatDropped*
commentId: Overload:Game.HatRespawn.OnHatDropped
2025-04-16 19:20:36 -04:00
name: OnHatDropped
nameWithType: HatRespawn.OnHatDropped
2025-04-16 19:57:54 -04:00
fullName: Game.HatRespawn.OnHatDropped