- Skee-ball now keeps track of used balls and no longer double-counts balls.

- TriggerToggle now accepts a list of GameObjects to toggle.
- Skee-ball disables only scoreboxes to prevent balls from being dropped early.
This commit is contained in:
2026-03-01 18:13:33 -05:00
parent 61589da9f0
commit 51d8c55afe
65 changed files with 5661 additions and 5444 deletions
+70 -4
View File
@@ -435,8 +435,8 @@ BoxCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 4.4457664, y: 2.9239593, z: 3.2004838}
m_Center: {x: -0.02666235, y: 0.14611697, z: -0.063975334}
m_Size: {x: 2.915797, y: 2.0449839, z: 0.80683064}
m_Center: {x: -1.027737, y: 0.35599828, z: 0}
--- !u!114 &4171383378248788621
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -459,7 +459,14 @@ MonoBehaviour:
PrefabModifications: []
SerializationNodes: []
_udonSharpBackingUdonBehaviour: {fileID: 3669668259726619245}
_ToggledObject: {fileID: 9179185946203134772}
_ToggledObjects:
- {fileID: 7300269601809691313}
- {fileID: 9179185947578676793}
- {fileID: 9179185946917445527}
- {fileID: 9179185946208560970}
- {fileID: 9179185946394401666}
- {fileID: 9179185947995340453}
- {fileID: 9179185946519395897}
_ActiveOnTrigger: 0
_EnterDelay: 0
_ExitDelay: 2
@@ -996,6 +1003,7 @@ MonoBehaviour:
StartResetButton: {fileID: 5537638107695796647}
BallStorage: {fileID: 9179185947275603470}
_AudioVolume: 1
_TrackedBalls: {fileID: 3975685720224068064}
VersionFile: {fileID: 4900000, guid: 9981865fdb36d6e418780a939bf849c7, type: 3}
--- !u!114 &3197169530839803150
MonoBehaviour:
@@ -4123,6 +4131,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035681447696}
Points: 100
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035681447696
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -4790,6 +4799,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869036015365770}
Points: 0
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869036015365770
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -5036,6 +5046,8 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 9179185946203134775}
- component: {fileID: 3975685720224068064}
- component: {fileID: 8098027936692823030}
m_Layer: 0
m_Name: ScoreCounter
m_TagString: Untagged
@@ -5069,6 +5081,54 @@ Transform:
- {fileID: 3845521640146993136}
m_Father: {fileID: 9179185947077332571}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3975685720224068064
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9179185946203134772}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1ee89f6c586faac42a9ddda6d800736b, type: 3}
m_Name:
m_EditorClassIdentifier:
serializationData:
SerializedFormat: 2
SerializedBytes:
ReferencedUnityObjects: []
SerializedBytesString:
Prefab: {fileID: 0}
PrefabModificationsReferencedUnityObjects: []
PrefabModifications: []
SerializationNodes: []
_udonSharpBackingUdonBehaviour: {fileID: 8098027936692823030}
--- !u!114 &8098027936692823030
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9179185946203134772}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 45115577ef41a5b4ca741ed302693907, type: 3}
m_Name:
m_EditorClassIdentifier:
interactTextPlacement: {fileID: 0}
interactText: Use
interactTextGO: {fileID: 0}
proximity: 2
SynchronizePosition: 0
AllowCollisionOwnershipTransfer: 0
Reliable: 0
_syncMethod: 3
serializedProgramAsset: {fileID: 11400000, guid: c3d3b4f012e15ad4b87243a442be3fa5,
type: 2}
programSource: {fileID: 11400000, guid: 591e7f16e3026014ea92e56f1125a631, type: 2}
serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBvAHIAbABpAGIAAQEJAAAAVgBhAHIAaQBhAGIAbABlAHMALwEAAAABaAAAAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4ARwBlAG4AZQByAGkAYwAuAEwAaQBzAHQAYAAxAFsAWwBWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAEkAbgB0AGUAcgBmAGEAYwBlAHMALgBJAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlACwAIABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgBdAF0ALAAgAG0AcwBjAG8AcgBsAGkAYgABAAAABgEAAAAAAAAAAi8CAAAAAUkAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAGAAMQBbAFsAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgBdAF0ALAAgAFYAUgBDAC4AVQBkAG8AbgAuAEMAbwBtAG0AbwBuAAIAAAAGAgAAAAAAAAAnAQQAAAB0AHkAcABlAAEXAAAAUwB5AHMAdABlAG0ALgBTAHQAcgBpAG4AZwAsACAAbQBzAGMAbwByAGwAaQBiACcBCgAAAFMAeQBtAGIAbwBsAE4AYQBtAGUAAR8AAABfAF8AXwBVAGQAbwBuAFMAaABhAHIAcABCAGUAaABhAHYAaQBvAHUAcgBWAGUAcgBzAGkAbwBuAF8AXwBfACcBBAAAAHQAeQBwAGUAARYAAABTAHkAcwB0AGUAbQAuAEkAbgB0ADMAMgAsACAAbQBzAGMAbwByAGwAaQBiABcBBQAAAFYAYQBsAHUAZQACAAAABwUHBQcF
publicVariablesUnityEngineObjects: []
publicVariablesSerializationDataFormat: 0
--- !u!1 &9179185946208560970
GameObject:
m_ObjectHideFlags: 0
@@ -5148,6 +5208,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035499769864}
Points: 40
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035499769864
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -5254,6 +5315,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035590188591}
Points: 30
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035590188591
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -5525,6 +5587,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035185681690}
Points: 10
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035185681690
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -5684,6 +5747,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035175269502}
Points: 50
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035175269502
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -5823,7 +5887,7 @@ Transform:
m_GameObject: {fileID: 9179185947275603471}
serializedVersion: 2
m_LocalRotation: {x: -0.012287363, y: 0.70699894, z: 0.012287307, w: 0.7070011}
m_LocalPosition: {x: -2.207, y: 0.322, z: 1.009}
m_LocalPosition: {x: -3.16, y: 0.266, z: 1.009}
m_LocalScale: {x: 0.06, y: 0.06, z: 0.06}
m_ConstrainProportionsScale: 0
m_Children:
@@ -5997,6 +6061,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869035403231640}
Points: 100
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869035403231640
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -6269,6 +6334,7 @@ MonoBehaviour:
_udonSharpBackingUdonBehaviour: {fileID: 8500869036427094011}
Points: 20
SkeeballMain: {fileID: 2722218089617861797}
_TrackedBalls: {fileID: 3975685720224068064}
--- !u!114 &8500869036427094011
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
Data: 2
Data: 3
- Name:
Entry: 7
Data:
@@ -171,6 +171,66 @@ MonoBehaviour:
- Name:
Entry: 8
Data:
- Name:
Entry: 7
Data:
- Name: $k
Entry: 1
Data: _TrackedBalls
- Name: $v
Entry: 7
Data: 11|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _TrackedBalls
- Name: <UserType>k__BackingField
Entry: 7
Data: 12|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: ScoredBallsTracker, Assembly-CSharp
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 8
- 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: 13|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 14|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: 13
Data:
@@ -9,16 +9,19 @@ namespace Pyralix.SkeeBall
public class ScoreTrigger : UdonSharpBehaviour
{
[SerializeField] private int Points;
[SerializeField] private SkeeballMain SkeeballMain;
[SerializeField] private ScoredBallsTracker _TrackedBalls;
public void OnTriggerExit(Collider other)
{
if(Utilities.IsValid(other) && other != null && other.GetComponent<Ball>())
{
if (Networking.GetOwner(other.gameObject) == Networking.GetOwner(SkeeballMain.gameObject))
if (!_TrackedBalls.ContainsBall(other.gameObject.name) && Networking.GetOwner(other.gameObject) == Networking.GetOwner(SkeeballMain.gameObject))
{
SkeeballMain._ScorePoints(Points);
_TrackedBalls.AddBall(other.gameObject.name);
}
}
}
@@ -0,0 +1,173 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3}
m_Name: ScoredBallsTracker
m_EditorClassIdentifier:
serializedUdonProgramAsset: {fileID: 11400000, guid: c3d3b4f012e15ad4b87243a442be3fa5,
type: 2}
udonAssembly:
assemblyError:
sourceCsScript: {fileID: 11500000, guid: 1ee89f6c586faac42a9ddda6d800736b, type: 3}
scriptVersion: 2
compiledVersion: 2
behaviourSyncMode: 4
hasInteractEvent: 0
scriptID: 6071225376027310533
serializationData:
SerializedFormat: 2
SerializedBytes:
ReferencedUnityObjects: []
SerializedBytesString:
Prefab: {fileID: 0}
PrefabModificationsReferencedUnityObjects: []
PrefabModifications: []
SerializationNodes:
- Name: fieldDefinitions
Entry: 7
Data: 0|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UdonSharp.Compiler.FieldDefinition,
UdonSharp.Editor]], mscorlib
- Name: comparer
Entry: 7
Data: 1|System.Collections.Generic.GenericEqualityComparer`1[[System.String,
mscorlib]], mscorlib
- Name:
Entry: 8
Data:
- Name:
Entry: 12
Data: 2
- Name:
Entry: 7
Data:
- Name: $k
Entry: 1
Data: _UsedBalls
- Name: $v
Entry: 7
Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _UsedBalls
- Name: <UserType>k__BackingField
Entry: 7
Data: 3|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.String[], mscorlib
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 3
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 5|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- 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: _BallCounter
- Name: $v
Entry: 7
Data: 6|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _BallCounter
- Name: <UserType>k__BackingField
Entry: 7
Data: 7|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.Int32, mscorlib
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 7
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 8|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 9|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- Name:
Entry: 8
Data:
- Name:
Entry: 13
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 13
Data:
- Name:
Entry: 8
Data:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 591e7f16e3026014ea92e56f1125a631
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,43 @@
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class ScoredBallsTracker : UdonSharpBehaviour
{
[UdonSynced] private string[] _UsedBalls = new string[10];
[UdonSynced] private int _BallCounter = 0;
public void AddBall(string BallName)
{
_UsedBalls[_BallCounter] = BallName;
_BallCounter++;
RequestSerialization();
}
public bool ContainsBall(string BallName)
{
for (int i = 0; i < _UsedBalls.Length; i++)
{
if (_UsedBalls[i] == BallName)
{
return true;
}
}
return false;
}
public void ClearBalls()
{
for (int i = 0; i < _UsedBalls.Length; i++)
{
_UsedBalls[i] = "";
}
_BallCounter = 0;
RequestSerialization();
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1ee89f6c586faac42a9ddda6d800736b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+228 -167
View File
@@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
Data: 35
Data: 36
- Name:
Entry: 7
Data:
@@ -1334,16 +1334,76 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: balls
Data: _TrackedBalls
- Name: $v
Entry: 7
Data: 78|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: balls
Data: _TrackedBalls
- Name: <UserType>k__BackingField
Entry: 7
Data: 79|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: ScoredBallsTracker, Assembly-CSharp
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 67
- 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: 80|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
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: balls
- Name: $v
Entry: 7
Data: 82|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: balls
- Name: <UserType>k__BackingField
Entry: 7
Data: 83|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: Pyralix.SkeeBall.Ball[], Assembly-CSharp
@@ -1352,7 +1412,7 @@ MonoBehaviour:
Data:
- Name: <SystemType>k__BackingField
Entry: 7
Data: 80|System.RuntimeType, mscorlib
Data: 84|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: UnityEngine.Component[], UnityEngine.CoreModule
@@ -1373,7 +1433,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 81|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
Data: 85|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -1397,13 +1457,13 @@ MonoBehaviour:
Data: ballGameObjects
- Name: $v
Entry: 7
Data: 82|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 86|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: ballGameObjects
- Name: <UserType>k__BackingField
Entry: 7
Data: 83|System.RuntimeType, mscorlib
Data: 87|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: UnityEngine.GameObject[], UnityEngine.CoreModule
@@ -1412,7 +1472,7 @@ MonoBehaviour:
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 83
Data: 87
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1427,7 +1487,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 84|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
Data: 88|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
@@ -1451,76 +1511,16 @@ MonoBehaviour:
Data: highScore
- Name: $v
Entry: 7
Data: 85|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 89|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: highScore
- Name: <UserType>k__BackingField
Entry: 7
Data: 86|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.Int32, mscorlib
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 86
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 87|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 88|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- 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: highScoreName
- Name: $v
Entry: 7
Data: 89|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: highScoreName
- Name: <UserType>k__BackingField
Entry: 7
Data: 90|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.String, mscorlib
Data: System.Int32, mscorlib
- Name:
Entry: 8
Data:
@@ -1568,19 +1568,79 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: ownerName
Data: highScoreName
- Name: $v
Entry: 7
Data: 93|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: highScoreName
- Name: <UserType>k__BackingField
Entry: 7
Data: 94|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.String, mscorlib
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 94
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 95|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 96|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- 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: ownerName
- Name: $v
Entry: 7
Data: 97|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: ownerName
- Name: <UserType>k__BackingField
Entry: 9
Data: 90
Data: 94
- Name: <SystemType>k__BackingField
Entry: 9
Data: 90
Data: 94
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1595,13 +1655,13 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 94|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
Data: 98|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 95|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
Data: 99|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- Name:
Entry: 8
Data:
@@ -1625,16 +1685,16 @@ MonoBehaviour:
Data: score
- Name: $v
Entry: 7
Data: 96|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 100|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: score
- Name: <UserType>k__BackingField
Entry: 9
Data: 86
Data: 90
- Name: <SystemType>k__BackingField
Entry: 9
Data: 86
Data: 90
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1649,68 +1709,14 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 97|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 98|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- 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: throwCount
- Name: $v
Entry: 7
Data: 99|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: throwCount
- Name: <UserType>k__BackingField
Entry: 9
Data: 86
- Name: <SystemType>k__BackingField
Entry: 9
Data: 86
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 100|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
Data: 101|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 101|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
Data: 102|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- Name:
Entry: 8
Data:
@@ -1731,25 +1737,19 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: gameOver
Data: throwCount
- Name: $v
Entry: 7
Data: 102|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 103|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: gameOver
Data: throwCount
- Name: <UserType>k__BackingField
Entry: 7
Data: 103|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.Boolean, mscorlib
- Name:
Entry: 8
Data:
Entry: 9
Data: 90
- Name: <SystemType>k__BackingField
Entry: 9
Data: 103
Data: 90
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1792,19 +1792,25 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: gameActive
Data: gameOver
- Name: $v
Entry: 7
Data: 106|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: gameActive
Data: gameOver
- Name: <UserType>k__BackingField
Entry: 9
Data: 103
Entry: 7
Data: 107|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: System.Boolean, mscorlib
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 103
Data: 107
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1819,14 +1825,69 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 107|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
Data: 108|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 108|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
Data: 109|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- 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: gameActive
- Name: $v
Entry: 7
Data: 110|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: gameActive
- Name: <UserType>k__BackingField
Entry: 9
Data: 107
- Name: <SystemType>k__BackingField
Entry: 9
Data: 107
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 3
Data: 1
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 111|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 112|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
- Name:
Entry: 8
Data:
@@ -1850,16 +1911,16 @@ MonoBehaviour:
Data: blockCount
- Name: $v
Entry: 7
Data: 109|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 113|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: blockCount
- Name: <UserType>k__BackingField
Entry: 9
Data: 86
Data: 90
- Name: <SystemType>k__BackingField
Entry: 9
Data: 86
Data: 90
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1874,7 +1935,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 110|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
Data: 114|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
@@ -1899,13 +1960,13 @@ MonoBehaviour:
Data: VersionFile
- Name: $v
Entry: 7
Data: 111|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 115|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: VersionFile
- Name: <UserType>k__BackingField
Entry: 7
Data: 112|System.RuntimeType, mscorlib
Data: 116|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: UnityEngine.TextAsset, UnityEngine.CoreModule
@@ -1914,7 +1975,7 @@ MonoBehaviour:
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 112
Data: 116
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1929,14 +1990,14 @@ MonoBehaviour:
Data: true
- Name: _fieldAttributes
Entry: 7
Data: 113|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
Data: 117|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 114|UnityEngine.SerializeField, UnityEngine.CoreModule
Data: 118|UnityEngine.SerializeField, UnityEngine.CoreModule
- Name:
Entry: 8
Data:
@@ -1960,16 +2021,16 @@ MonoBehaviour:
Data: version
- Name: $v
Entry: 7
Data: 115|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
Data: 119|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: version
- Name: <UserType>k__BackingField
Entry: 9
Data: 90
Data: 94
- Name: <SystemType>k__BackingField
Entry: 9
Data: 90
Data: 94
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
@@ -1984,7 +2045,7 @@ MonoBehaviour:
Data: false
- Name: _fieldAttributes
Entry: 7
Data: 116|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
Data: 120|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
mscorlib
- Name:
Entry: 12
@@ -34,6 +34,7 @@ namespace Pyralix.SkeeBall
[SerializeField] private StartResetButton StartResetButton;
[SerializeField] private Transform BallStorage;
[SerializeField] public float _AudioVolume = 1f;
[SerializeField] private ScoredBallsTracker _TrackedBalls;
private Ball[] balls;
private GameObject[] ballGameObjects;
[UdonSynced] private int highScore;
@@ -198,6 +199,7 @@ namespace Pyralix.SkeeBall
private void ResetThrowCount()
{
throwCount = 0;
_TrackedBalls.ClearBalls();
RequestSerialization();
ThrowCountText.GetComponent<Text>().text = $"Ball: {throwCount}";
@@ -223,6 +225,7 @@ namespace Pyralix.SkeeBall
Networking.SetOwner(player, ScoreText);
Networking.SetOwner(player, OwnerText);
Networking.SetOwner(player, HighScoreText);
Networking.SetOwner(player, _TrackedBalls.gameObject);
foreach(GameObject go in ballGameObjects)
{
Networking.SetOwner(player, go);
@@ -241,7 +244,8 @@ namespace Pyralix.SkeeBall
Networking.SetOwner(player, ScoreText);
Networking.SetOwner(player, OwnerText);
Networking.SetOwner(player, HighScoreText);
foreach (GameObject go in ballGameObjects)
Networking.SetOwner(player, _TrackedBalls.gameObject);
foreach (GameObject go in ballGameObjects)
{
Networking.SetOwner(player, go);
}