diff --git a/Assets/RealCode/GameBoard.cs b/Assets/RealCode/GameBoard.cs index 29c10be..140168d 100644 --- a/Assets/RealCode/GameBoard.cs +++ b/Assets/RealCode/GameBoard.cs @@ -157,9 +157,7 @@ public class GameBoard : EntityBase, IAutoSerialize, IAutoDeserialize { return; case DelayState.None: if (HighestStack(board) >= 13) { - delayState = DelayState.Loss; - - StartCoroutine(HandleLoss(3f)); + RaiseEvent('l', true); // TODO - Do a bunch of networking silliness to end the game here } @@ -628,6 +626,12 @@ public class GameBoard : EntityBase, IAutoSerialize, IAutoDeserialize { bool stateDirty = false; + [NetEvent('l')] + void SendLossState(){ + delayState = DelayState.Loss; + StartCoroutine(HandleLoss(3f)); + } + [Header("Network")] public float networkTick = 0.1f; private float nextNetworkTick; diff --git a/Assets/Scenes/Board Render/BoardRender.unity b/Assets/Scenes/Board Render/BoardRender.unity index 0976f92..d309301 100644 --- a/Assets/Scenes/Board Render/BoardRender.unity +++ b/Assets/Scenes/Board Render/BoardRender.unity @@ -1426,6 +1426,234 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 371842953, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 371842953, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 371842953, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 380521610, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 380521610, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 380521610, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 786753332, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 786753332, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 786753332, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2074502350, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2074502350, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2074502350, guid: adba91609cb1e5448b76682be198fc9b, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633638169071, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633638169071, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633638169071, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633760980512, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633760980512, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633760980512, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633775482130, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633775482130, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633775482130, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633916843623, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633916843623, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330633916843623, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634003904156, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634003904156, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634003904156, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634159991433, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634159991433, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634159991433, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634177679782, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634177679782, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634177679782, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634248025819, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634248025819, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634248025819, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634454597124, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634454597124, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634454597124, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634653605562, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634653605562, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634653605562, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634900042864, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634900042864, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330634900042864, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330635014798853, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330635014798853, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330635014798853, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 1736330635070797285, guid: adba91609cb1e5448b76682be198fc9b, type: 3} propertyPath: m_Name @@ -1536,6 +1764,21 @@ PrefabInstance: propertyPath: m_Pivot.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 1736330635428427867, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330635428427867, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1736330635428427867, guid: adba91609cb1e5448b76682be198fc9b, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 1736330635485585598, guid: adba91609cb1e5448b76682be198fc9b, type: 3} propertyPath: tDisplays.Array.data[0].target