2025-04-16 19:20:36 -04:00
|
|
|
### YamlMime:ManagedReference
|
|
|
|
|
items:
|
2025-04-16 19:57:54 -04:00
|
|
|
- uid: Game.GameTimer
|
|
|
|
|
commentId: T:Game.GameTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
id: GameTimer
|
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.GameTimer.startTime
|
|
|
|
|
- Game.GameTimer.StartTimer
|
|
|
|
|
- Game.GameTimer.timerText
|
2025-04-16 19:20:36 -04:00
|
|
|
langs:
|
|
|
|
|
- csharp
|
|
|
|
|
- vb
|
|
|
|
|
name: GameTimer
|
|
|
|
|
nameWithType: GameTimer
|
2025-04-16 19:57:54 -04:00
|
|
|
fullName: Game.GameTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
type: Class
|
|
|
|
|
source:
|
|
|
|
|
id: GameTimer
|
|
|
|
|
path: ''
|
2025-04-19 12:59:07 -04:00
|
|
|
startLine: 1415
|
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 game's countdown timer.\nIt starts, updates, and stops the timer, and ends the game when time runs out.\n"
|
|
|
|
|
example: []
|
2025-04-16 19:20:36 -04:00
|
|
|
syntax:
|
|
|
|
|
content: 'public class GameTimer : MonoBehaviour'
|
|
|
|
|
content.vb: Public Class GameTimer Inherits MonoBehaviour
|
|
|
|
|
inheritance:
|
|
|
|
|
- System.Object
|
2025-04-16 19:57:54 -04:00
|
|
|
- uid: Game.GameTimer.startTime
|
|
|
|
|
commentId: F:Game.GameTimer.startTime
|
2025-04-16 19:20:36 -04:00
|
|
|
id: startTime
|
2025-04-16 19:57:54 -04:00
|
|
|
parent: Game.GameTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
langs:
|
|
|
|
|
- csharp
|
|
|
|
|
- vb
|
|
|
|
|
name: startTime
|
|
|
|
|
nameWithType: GameTimer.startTime
|
2025-04-16 19:57:54 -04:00
|
|
|
fullName: Game.GameTimer.startTime
|
2025-04-16 19:20:36 -04:00
|
|
|
type: Field
|
|
|
|
|
source:
|
|
|
|
|
id: startTime
|
|
|
|
|
path: ''
|
2025-04-19 12:59:07 -04:00
|
|
|
startLine: 1420
|
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 starting time for the timer, in seconds.\n"
|
|
|
|
|
example: []
|
2025-04-16 19:20:36 -04:00
|
|
|
syntax:
|
|
|
|
|
content: public float startTime
|
|
|
|
|
return:
|
|
|
|
|
type: System.Single
|
|
|
|
|
content.vb: Public startTime As Single
|
2025-04-16 19:57:54 -04:00
|
|
|
- uid: Game.GameTimer.timerText
|
|
|
|
|
commentId: F:Game.GameTimer.timerText
|
2025-04-16 19:20:36 -04:00
|
|
|
id: timerText
|
2025-04-16 19:57:54 -04:00
|
|
|
parent: Game.GameTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
langs:
|
|
|
|
|
- csharp
|
|
|
|
|
- vb
|
|
|
|
|
name: timerText
|
|
|
|
|
nameWithType: GameTimer.timerText
|
2025-04-16 19:57:54 -04:00
|
|
|
fullName: Game.GameTimer.timerText
|
2025-04-16 19:20:36 -04:00
|
|
|
type: Field
|
|
|
|
|
source:
|
|
|
|
|
id: timerText
|
|
|
|
|
path: ''
|
2025-04-19 12:59:07 -04:00
|
|
|
startLine: 1435
|
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 UI text element that displays the timer.\n"
|
|
|
|
|
example: []
|
2025-04-16 19:20:36 -04:00
|
|
|
syntax:
|
|
|
|
|
content: public Text timerText
|
|
|
|
|
return:
|
|
|
|
|
type: Global.Text
|
|
|
|
|
content.vb: Public timerText As Text
|
2025-04-16 19:57:54 -04:00
|
|
|
- uid: Game.GameTimer.StartTimer
|
|
|
|
|
commentId: M:Game.GameTimer.StartTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
id: StartTimer
|
2025-04-16 19:57:54 -04:00
|
|
|
parent: Game.GameTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
langs:
|
|
|
|
|
- csharp
|
|
|
|
|
- vb
|
|
|
|
|
name: StartTimer()
|
|
|
|
|
nameWithType: GameTimer.StartTimer()
|
2025-04-16 19:57:54 -04:00
|
|
|
fullName: Game.GameTimer.StartTimer()
|
2025-04-16 19:20:36 -04:00
|
|
|
type: Method
|
|
|
|
|
source:
|
|
|
|
|
id: StartTimer
|
|
|
|
|
path: ''
|
2025-04-19 12:59:07 -04:00
|
|
|
startLine: 1479
|
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: "\nStarts the timer if it is not already running.\n"
|
|
|
|
|
example: []
|
2025-04-16 19:20:36 -04:00
|
|
|
syntax:
|
|
|
|
|
content: public void StartTimer()
|
|
|
|
|
content.vb: Public Sub StartTimer()
|
2025-04-16 19:57:54 -04:00
|
|
|
overload: Game.GameTimer.StartTimer*
|
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
|
|
|
|
|
- uid: Global.Text
|
|
|
|
|
commentId: '!:Global.Text'
|
|
|
|
|
isExternal: true
|
|
|
|
|
name: Text
|
|
|
|
|
nameWithType: Text
|
|
|
|
|
fullName: Text
|
2025-04-16 19:57:54 -04:00
|
|
|
- uid: Game.GameTimer.StartTimer*
|
|
|
|
|
commentId: Overload:Game.GameTimer.StartTimer
|
2025-04-16 19:20:36 -04:00
|
|
|
name: StartTimer
|
|
|
|
|
nameWithType: GameTimer.StartTimer
|
2025-04-16 19:57:54 -04:00
|
|
|
fullName: Game.GameTimer.StartTimer
|