Added a sorting algorithm to determine player order from lowest to highest score.
This commit is contained in:
parent
322a061758
commit
18980f70ba
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 25
|
||||
Data: 28
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
@ -554,19 +554,19 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _IsBeingHeld
|
||||
Data: _FinalRoundPlayersSortedByScore
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 32|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _IsBeingHeld
|
||||
Data: _FinalRoundPlayersSortedByScore
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 3
|
||||
Data: 30
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 3
|
||||
Data: 30
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -602,25 +602,19 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _StoredJumpImpulse
|
||||
Data: _IsBeingHeld
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 34|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _StoredJumpImpulse
|
||||
Data: _IsBeingHeld
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 35|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: System.Single, mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
Entry: 9
|
||||
Data: 3
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 35
|
||||
Data: 3
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -635,7 +629,61 @@ MonoBehaviour:
|
||||
Data: false
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 36|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 35|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _StoredJumpImpulse
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 36|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _StoredJumpImpulse
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 37|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: System.Single, mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 37
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 6
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: false
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 38|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
@ -659,13 +707,13 @@ MonoBehaviour:
|
||||
Data: _PlayerPodiums
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 37|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 39|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _PlayerPodiums
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 38|System.RuntimeType, mscorlib
|
||||
Data: 40|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: PlayerPodium[], Assembly-CSharp
|
||||
@ -674,7 +722,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 39|System.RuntimeType, mscorlib
|
||||
Data: 41|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: UnityEngine.Component[], UnityEngine.CoreModule
|
||||
@ -695,13 +743,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 40|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 42|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 41|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 43|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -725,13 +773,13 @@ MonoBehaviour:
|
||||
Data: QuestionURL
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 42|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 44|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: QuestionURL
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 43|System.RuntimeType, mscorlib
|
||||
Data: 45|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: VRC.SDKBase.VRCUrl, VRCSDKBase
|
||||
@ -740,7 +788,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 43
|
||||
Data: 45
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -755,13 +803,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 44|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 46|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 45|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
|
||||
Data: 47|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -785,13 +833,13 @@ MonoBehaviour:
|
||||
Data: _BetweenRoundsInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 46|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 48|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _BetweenRoundsInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 47|System.RuntimeType, mscorlib
|
||||
Data: 49|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostCardBetweenRoundsInterface, Assembly-CSharp
|
||||
@ -800,7 +848,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 48|System.RuntimeType, mscorlib
|
||||
Data: 50|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: VRC.Udon.UdonBehaviour, VRC.Udon
|
||||
@ -821,13 +869,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 49|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 51|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 50|UnityEngine.HeaderAttribute, UnityEngine.CoreModule
|
||||
Data: 52|UnityEngine.HeaderAttribute, UnityEngine.CoreModule
|
||||
- Name: header
|
||||
Entry: 1
|
||||
Data: UI
|
||||
@ -836,7 +884,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 51|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 53|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -860,13 +908,13 @@ MonoBehaviour:
|
||||
Data: _MultipleChoiceInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 52|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 54|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _MultipleChoiceInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 53|System.RuntimeType, mscorlib
|
||||
Data: 55|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostCardMultipleChoiceInterface, Assembly-CSharp
|
||||
@ -875,7 +923,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 48
|
||||
Data: 50
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -890,13 +938,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 54|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 56|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 55|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 57|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -920,13 +968,13 @@ MonoBehaviour:
|
||||
Data: _LightningRoundInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 56|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 58|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _LightningRoundInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 57|System.RuntimeType, mscorlib
|
||||
Data: 59|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostCardLightningRoundInterface, Assembly-CSharp
|
||||
@ -935,7 +983,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 48
|
||||
Data: 50
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -950,13 +998,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 58|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 60|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 59|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 61|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -980,13 +1028,13 @@ MonoBehaviour:
|
||||
Data: _TheChaseInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 60|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 62|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _TheChaseInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 61|System.RuntimeType, mscorlib
|
||||
Data: 63|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostCardTheChaseInterface, Assembly-CSharp
|
||||
@ -995,7 +1043,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 48
|
||||
Data: 50
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1010,13 +1058,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 62|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 64|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 63|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 65|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1040,13 +1088,13 @@ MonoBehaviour:
|
||||
Data: _FinalRoundInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 64|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 66|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _FinalRoundInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 65|System.RuntimeType, mscorlib
|
||||
Data: 67|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostCardFinalRoundInterface, Assembly-CSharp
|
||||
@ -1055,7 +1103,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 48
|
||||
Data: 50
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1070,13 +1118,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 66|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 68|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 67|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 69|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1100,13 +1148,13 @@ MonoBehaviour:
|
||||
Data: _AdminPanelInterface
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 68|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 70|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _AdminPanelInterface
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 69|System.RuntimeType, mscorlib
|
||||
Data: 71|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: HostPanelInterface, Assembly-CSharp
|
||||
@ -1115,7 +1163,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 48
|
||||
Data: 50
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1130,13 +1178,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 70|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 72|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 71|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 73|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1160,13 +1208,13 @@ MonoBehaviour:
|
||||
Data: _Ding
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 72|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 74|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _Ding
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 73|System.RuntimeType, mscorlib
|
||||
Data: 75|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: UnityEngine.AudioClip, UnityEngine.AudioModule
|
||||
@ -1175,7 +1223,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1190,13 +1238,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 74|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 76|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 75|UnityEngine.HeaderAttribute, UnityEngine.CoreModule
|
||||
Data: 77|UnityEngine.HeaderAttribute, UnityEngine.CoreModule
|
||||
- Name: header
|
||||
Entry: 1
|
||||
Data: Audio
|
||||
@ -1205,7 +1253,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 76|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 78|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1229,16 +1277,16 @@ MonoBehaviour:
|
||||
Data: _Buzzer
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 77|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 79|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _Buzzer
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1253,13 +1301,121 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 78|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 80|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 79|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 81|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _TheChase
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 82|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _TheChase
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 75
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 6
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 83|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 84|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _ThinkAboutIt
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 85|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _ThinkAboutIt
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 75
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 6
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 86|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 87|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1283,16 +1439,16 @@ MonoBehaviour:
|
||||
Data: _WhereInTheWorld
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 80|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 88|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _WhereInTheWorld
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1307,13 +1463,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 81|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 89|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 82|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 90|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1337,16 +1493,16 @@ MonoBehaviour:
|
||||
Data: _RockapellaIdent
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 83|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 91|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _RockapellaIdent
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 73
|
||||
Data: 75
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1361,13 +1517,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 84|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 92|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 85|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 93|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1391,13 +1547,13 @@ MonoBehaviour:
|
||||
Data: _MusicPlayer
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 86|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 94|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _MusicPlayer
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 87|System.RuntimeType, mscorlib
|
||||
Data: 95|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: UnityEngine.AudioSource, UnityEngine.AudioModule
|
||||
@ -1406,7 +1562,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 87
|
||||
Data: 95
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1421,13 +1577,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 88|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 96|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 89|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 97|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
@ -1451,16 +1607,16 @@ MonoBehaviour:
|
||||
Data: _SFXPlayer
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 90|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 98|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _SFXPlayer
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 87
|
||||
Data: 95
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 87
|
||||
Data: 95
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@ -1475,13 +1631,13 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 91|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 99|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 92|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
Data: 100|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
|
||||
@ -6,7 +6,6 @@ using VRC.SDK3.UdonNetworkCalling;
|
||||
using VRC.Udon.Common.Interfaces;
|
||||
using VRC.SDKBase;
|
||||
using VRC.SDK3.StringLoading;
|
||||
using TMPro;
|
||||
using VRC.SDK3.Components;
|
||||
using VRC.Udon.Common;
|
||||
|
||||
@ -25,6 +24,8 @@ public enum QuestionType
|
||||
public enum MusicEventType
|
||||
{
|
||||
None,
|
||||
TheChase,
|
||||
ThinkAboutIt,
|
||||
WhereInTheWorld,
|
||||
RockapellaIdent
|
||||
}
|
||||
@ -51,6 +52,8 @@ public class GameManager : UdonSharpBehaviour
|
||||
private DataList _QuestionsList = new DataList();
|
||||
private DataDictionary _CurrentQuestion;
|
||||
|
||||
private DataDictionary _FinalRoundPlayersSortedByScore = new DataDictionary();
|
||||
|
||||
private bool _IsBeingHeld = false;
|
||||
private float _StoredJumpImpulse = 0.0f;
|
||||
|
||||
@ -71,6 +74,8 @@ public class GameManager : UdonSharpBehaviour
|
||||
[SerializeField] private AudioClip _Ding = null;
|
||||
[SerializeField] private AudioClip _Buzzer = null;
|
||||
|
||||
[SerializeField] private AudioClip _TheChase = null;
|
||||
[SerializeField] private AudioClip _ThinkAboutIt = null;
|
||||
[SerializeField] private AudioClip _WhereInTheWorld = null;
|
||||
[SerializeField] private AudioClip _RockapellaIdent = null;
|
||||
|
||||
@ -464,6 +469,211 @@ public class GameManager : UdonSharpBehaviour
|
||||
EnableInteraction("Next Question");
|
||||
}
|
||||
|
||||
private void BeginFinalRound()
|
||||
{
|
||||
_FinalRoundInterface.HeaderUI.text = QuestionTypeToString((QuestionType)((int)_CurrentQuestion["Type"].Number)) + " | Showing Map Preview";
|
||||
|
||||
DataList ClueStrings = _CurrentQuestion["Clues"].DataList;
|
||||
for (int i = 0; i < _FinalRoundInterface.CluesUI.Length && i < ClueStrings.Count; i++)
|
||||
{
|
||||
_FinalRoundInterface.CluesUI[i].text = ClueStrings[i].ToString();
|
||||
}
|
||||
|
||||
DataList Choices = _CurrentQuestion["Choices"].DataList;
|
||||
for (int i = 0; i < Choices.Count && i < _FinalRoundInterface.ChoiceUI.Length; i++)
|
||||
{
|
||||
_FinalRoundInterface.ChoiceUI[i].text = Choices[i].ToString();
|
||||
}
|
||||
|
||||
_QuestionCorrectResponse = (int)_CurrentQuestion["Correct Response"].Number;
|
||||
|
||||
EnableHostCardDisplay(QuestionType.FinalRound);
|
||||
|
||||
EnableInteraction("Think About It");
|
||||
}
|
||||
|
||||
private void PlayThinkingMusic()
|
||||
{
|
||||
EnableHostCardDisplay(QuestionType.None);
|
||||
|
||||
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)this, NetworkEventTarget.All, nameof(PlayMusic), MusicEventType.ThinkAboutIt);
|
||||
SendCustomEventDelayedSeconds(nameof(CountdownFinished), 15.0f);
|
||||
}
|
||||
public void CountdownFinished()
|
||||
{
|
||||
EnableHostCardDisplay(QuestionType.FinalRound);
|
||||
|
||||
EnableInteraction("Reveal Choice 1");
|
||||
}
|
||||
|
||||
private void FinalRoundRevealChoices()
|
||||
{
|
||||
SendCustomEvent(nameof(FinalRoundRevealChoice1));
|
||||
SendCustomEventDelayedSeconds(nameof(FinalRoundRevealChoice2), 1.25f);
|
||||
SendCustomEventDelayedSeconds(nameof(FinalRoundRevealChoice3), 2.5f);
|
||||
}
|
||||
public void FinalRoundRevealChoice1()
|
||||
{
|
||||
_FinalRoundInterface.ChoiceButtonImages[0].color = (_QuestionCorrectResponse == 1) ? Color.green : Color.red;
|
||||
|
||||
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PlaySFXAtPitch), SFXEventType.Ding, As5);
|
||||
|
||||
EnableInteraction("Reveal Choice 2");
|
||||
}
|
||||
public void FinalRoundRevealChoice2()
|
||||
{
|
||||
_FinalRoundInterface.ChoiceButtonImages[1].color = (_QuestionCorrectResponse == 2) ? Color.green : Color.red;
|
||||
|
||||
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PlaySFXAtPitch), SFXEventType.Ding, C6);
|
||||
|
||||
EnableInteraction("Reveal Choice 3");
|
||||
}
|
||||
public void FinalRoundRevealChoice3()
|
||||
{
|
||||
_FinalRoundInterface.ChoiceButtonImages[2].color = (_QuestionCorrectResponse == 3) ? Color.green : Color.red;
|
||||
DataList Choices = _CurrentQuestion["Choices"].DataList;
|
||||
EnableChoiceCards();
|
||||
|
||||
// Complex per-podium randomiser, to prevent peeking
|
||||
Random.InitState(Networking.GetServerTimeInMilliseconds());
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
int[] Indices = { 0, 1, 2 };
|
||||
int[] ChoiceOrder = { -1, -1, -1 };
|
||||
|
||||
int Choice1Index = Indices[Random.Range(0, 3)];
|
||||
ChoiceOrder[0] = Choice1Index;
|
||||
Indices[Choice1Index] = -1;
|
||||
|
||||
int Choice2Index = -1;
|
||||
while (Choice2Index == -1) { Choice2Index = Indices[Random.Range(0, 3)]; }
|
||||
ChoiceOrder[1] = Choice2Index;
|
||||
Indices[Choice2Index] = -1;
|
||||
|
||||
int Choice3Index = -1;
|
||||
while (Choice3Index == -1) { Choice3Index = Indices[Random.Range(0, 3)]; }
|
||||
ChoiceOrder[2] = Choice3Index;
|
||||
Indices[Choice3Index] = -1;
|
||||
|
||||
string[] ChoiceStrings = { Choices[0].ToString(), Choices[1].ToString(), Choices[2].ToString() };
|
||||
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)_PlayerPodiums[i], NetworkEventTarget.All, "SetCardChoices", ChoiceStrings, ChoiceOrder);
|
||||
}
|
||||
|
||||
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PlaySFXAtPitch), SFXEventType.Ding, D6);
|
||||
|
||||
EnableInteraction("Lock Answers");
|
||||
}
|
||||
|
||||
private void FinalRoundLockAnswers()
|
||||
{
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)_PlayerPodiums[i], NetworkEventTarget.All, "LockInChoice");
|
||||
}
|
||||
|
||||
_FinalRoundInterface.HeaderUI.text = "LOCKED IN";
|
||||
for (int i = 0; i < _FinalRoundInterface.CluesUI.Length; i++)
|
||||
{
|
||||
_FinalRoundInterface.CluesUI[i].text = "";
|
||||
}
|
||||
|
||||
for (int i = 0; i < _FinalRoundInterface.ChoiceUI.Length; i++)
|
||||
{
|
||||
if (i != (_QuestionCorrectResponse - 1))
|
||||
{
|
||||
_FinalRoundInterface.ChoiceUI[i].text = "";
|
||||
}
|
||||
}
|
||||
|
||||
SortPlayersByScore();
|
||||
|
||||
EnableInteraction("Reveal Answers And Assign Points");
|
||||
}
|
||||
private void SortPlayersByScore()
|
||||
{
|
||||
int NumberOfPodiums = _PlayerPodiums.Length;
|
||||
int SizeOfSorter = (NumberOfPodiums * 2) - 1;
|
||||
|
||||
int[] PlayerSorter = new int[SizeOfSorter];
|
||||
int[] ScoreSorter = new int[SizeOfSorter];
|
||||
for (int i = 0; i < SizeOfSorter; i++)
|
||||
{
|
||||
ScoreSorter[i] = int.MaxValue;
|
||||
PlayerSorter[i] = 0;
|
||||
}
|
||||
|
||||
int SorterCentre = NumberOfPodiums - 1;
|
||||
|
||||
PlayerSorter[SorterCentre] = 1;
|
||||
ScoreSorter[SorterCentre] = _PlayerPodiums[0].PlayerScore;
|
||||
for (int i = 1; i < NumberOfPodiums; i++)
|
||||
{
|
||||
if (_PlayerPodiums[i].PlayerScore < ScoreSorter[SorterCentre - (i - 1)])
|
||||
{
|
||||
ScoreSorter[SorterCentre - i] = _PlayerPodiums[i].PlayerScore;
|
||||
PlayerSorter[SorterCentre - i] = (i + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
ScoreSorter[SorterCentre + i] = _PlayerPodiums[i].PlayerScore;
|
||||
PlayerSorter[SorterCentre + i] = (i + 1);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < SizeOfSorter; i++)
|
||||
{
|
||||
if (ScoreSorter[i] < int.MaxValue)
|
||||
{
|
||||
_FinalRoundPlayersSortedByScore[PlayerSorter[i].ToString()] = ScoreSorter[i];
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < _FinalRoundPlayersSortedByScore.Count; i++)
|
||||
{
|
||||
Debug.LogWarning("Player " + _FinalRoundPlayersSortedByScore.GetKeys()[i] + " has a score of " + _FinalRoundPlayersSortedByScore[_FinalRoundPlayersSortedByScore.GetKeys()[i]]);
|
||||
}
|
||||
}
|
||||
|
||||
private void FinalRoundAssignPointsToLowestScoringPlayer()
|
||||
{
|
||||
_FinalRoundInterface.HeaderUI.text = "ANSWER REVEALED";
|
||||
|
||||
int LowestScore = int.MaxValue;
|
||||
int LowestScoringPlayer = -1;
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
if (_PlayerPodiums[i].PlayerScore < LowestScore)
|
||||
{
|
||||
LowestScore = _PlayerPodiums[i].PlayerScore;
|
||||
LowestScoringPlayer = i;
|
||||
}
|
||||
}
|
||||
|
||||
EnableInteraction("End Round");
|
||||
}
|
||||
|
||||
private void FinalRoundAssignPointsToMiddleScoringPlayer()
|
||||
{
|
||||
_FinalRoundInterface.HeaderUI.text = "ANSWER REVEALED";
|
||||
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
}
|
||||
|
||||
EnableInteraction("End Round");
|
||||
}
|
||||
|
||||
private void FinalRoundAssignPointsToHighestScoringPlayer()
|
||||
{
|
||||
_FinalRoundInterface.HeaderUI.text = "ANSWER REVEALED";
|
||||
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
}
|
||||
|
||||
EnableInteraction("End Round");
|
||||
}
|
||||
|
||||
|
||||
private void AdvanceToNextQuestion()
|
||||
{
|
||||
@ -619,6 +829,7 @@ public class GameManager : UdonSharpBehaviour
|
||||
case (int)QuestionType.MultipleChoice: AdvanceMultipleChoiceStage(); break;
|
||||
case (int)QuestionType.LightningRound: AdvanceLightningRoundQuestion(); break;
|
||||
case (int)QuestionType.TheChase: AdvanceTheChase(); break;
|
||||
case (int)QuestionType.FinalRound: AdvanceFinalRound(); break;
|
||||
}
|
||||
|
||||
RequestSerialization();
|
||||
@ -667,6 +878,24 @@ public class GameManager : UdonSharpBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void AdvanceFinalRound()
|
||||
{
|
||||
switch (_QuestionStage)
|
||||
{
|
||||
case 1: BeginFinalRound(); break;
|
||||
case 2: PlayThinkingMusic(); break;
|
||||
case 3: FinalRoundRevealChoice1(); break;
|
||||
case 4: FinalRoundRevealChoice2(); break;
|
||||
case 5: FinalRoundRevealChoice3(); break;
|
||||
case 6: FinalRoundLockAnswers(); break;
|
||||
case 7: FinalRoundAssignPointsToLowestScoringPlayer(); break;
|
||||
case 8: FinalRoundAssignPointsToMiddleScoringPlayer(); break;
|
||||
case 9: FinalRoundAssignPointsToHighestScoringPlayer(); break;
|
||||
case 10: AdvanceToNextQuestion(); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[NetworkCallable]
|
||||
public void PlayMusic(MusicEventType MusicEvent)
|
||||
@ -675,6 +904,8 @@ public class GameManager : UdonSharpBehaviour
|
||||
|
||||
switch (MusicEvent)
|
||||
{
|
||||
case MusicEventType.TheChase: _MusicPlayer.clip = _TheChase; break;
|
||||
case MusicEventType.ThinkAboutIt: _MusicPlayer.clip = _ThinkAboutIt; break;
|
||||
case MusicEventType.WhereInTheWorld: _MusicPlayer.clip = _WhereInTheWorld; break;
|
||||
case MusicEventType.RockapellaIdent: _MusicPlayer.clip = _RockapellaIdent; break;
|
||||
default: _MusicPlayer.clip = null; break;
|
||||
@ -747,6 +978,7 @@ public class GameManager : UdonSharpBehaviour
|
||||
_MultipleChoiceInterface.gameObject.SetActive(false);
|
||||
_LightningRoundInterface.gameObject.SetActive(false);
|
||||
_TheChaseInterface.gameObject.SetActive(false);
|
||||
_FinalRoundInterface.gameObject.SetActive(false);
|
||||
|
||||
switch (Type)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user