diff --git a/TheStrongestSnail/Assets/Editor.meta b/TheStrongestSnail/Assets/Editor.meta new file mode 100644 index 0000000..1543b45 --- /dev/null +++ b/TheStrongestSnail/Assets/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bda3fb9806abb464482e9cb8e77949cd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Editor/SpineSettings.asset b/TheStrongestSnail/Assets/Editor/SpineSettings.asset new file mode 100644 index 0000000..a9c305d --- /dev/null +++ b/TheStrongestSnail/Assets/Editor/SpineSettings.asset @@ -0,0 +1,39 @@ +%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: b29e98153ec2fbd44b8f7da1b41194e8, type: 3} + m_Name: SpineSettings + m_EditorClassIdentifier: + defaultScale: 0.01 + defaultMix: 0.2 + defaultShader: Spine/Skeleton + defaultZSpacing: 0 + defaultInstantiateLoop: 1 + defaultPhysicsPositionInheritance: {x: 1, y: 1} + defaultPhysicsRotationInheritance: 1 + showHierarchyIcons: 1 + reloadAfterPlayMode: 1 + setTextureImporterSettings: 1 + textureSettingsReference: + fixPrefabOverrideViaMeshFilter: 0 + removePrefabPreviewMeshes: 0 + blendModeMaterialMultiply: {fileID: 0} + blendModeMaterialScreen: {fileID: 0} + blendModeMaterialAdditive: {fileID: 0} + atlasTxtImportWarning: 1 + textureImporterWarning: 1 + componentMaterialWarning: 1 + skeletonDataAssetNoFileError: 1 + autoReloadSceneSkeletons: 1 + handleScale: 1 + mecanimEventIncludeFolderName: 1 + timelineDefaultMixDuration: 0 + timelineUseBlendDuration: 1 diff --git a/TheStrongestSnail/Assets/Editor/SpineSettings.asset.meta b/TheStrongestSnail/Assets/Editor/SpineSettings.asset.meta new file mode 100644 index 0000000..af194a3 --- /dev/null +++ b/TheStrongestSnail/Assets/Editor/SpineSettings.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: bd90f0f8a3e9d0544bbd18c6257570fc +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Scenes/Battle_Royale.unity b/TheStrongestSnail/Assets/Scenes/Battle_Royale.unity index cf2bc2a..a610923 100644 --- a/TheStrongestSnail/Assets/Scenes/Battle_Royale.unity +++ b/TheStrongestSnail/Assets/Scenes/Battle_Royale.unity @@ -547,11 +547,7 @@ RectTransform: - {fileID: 2135586306} - {fileID: 1584193622} - {fileID: 1995711213} - - {fileID: 332149378} - - {fileID: 580834436} - {fileID: 2029421261} - - {fileID: 252325264} - - {fileID: 935748551} m_Father: {fileID: 1225833476} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -839,7 +835,7 @@ GameObject: - component: {fileID: 214046554} - component: {fileID: 214046553} m_Layer: 5 - m_Name: Text (Legacy) + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -1150,6 +1146,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 252325264} + - component: {fileID: 252325265} m_Layer: 5 m_Name: HegemonPanel m_TagString: Untagged @@ -1164,21 +1161,35 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 252325263} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 43098355} - {fileID: 394223518} - m_Father: {fileID: 142654719} - m_RootOrder: 11 + m_Father: {fileID: 1225833476} + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5398135, y: 0.882} m_AnchorMax: {x: 1, y: 0.966} m_AnchoredPosition: {x: -2.580017, y: -9.944824} - m_SizeDelta: {x: 8.150024, y: 21.1904} + m_SizeDelta: {x: 8.150024, y: 21.190414} m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &252325265 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 252325263} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: bccc9804fcaee0b4dbf55f78a599bc2c, type: 3} + m_Name: + m_EditorClassIdentifier: + timeText: {fileID: 1632850612} + timeNum: 0 --- !u!1 &271727214 GameObject: m_ObjectHideFlags: 0 @@ -1231,7 +1242,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 + m_RaycastTarget: 0 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: @@ -1268,7 +1279,7 @@ GameObject: - component: {fileID: 284545412} - component: {fileID: 284545411} m_Layer: 5 - m_Name: Text (Legacy) + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -1415,13 +1426,13 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 332149377} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 142654719} - m_RootOrder: 8 + m_Father: {fileID: 1225833476} + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.93435806} m_AnchorMax: {x: 0.2895423, y: 0.98676854} @@ -1964,20 +1975,20 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 580834435} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1406968644} - {fileID: 1804033313} - m_Father: {fileID: 142654719} - m_RootOrder: 9 + m_Father: {fileID: 1225833476} + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.04054228, y: 0.901642} m_AnchorMax: {x: 0.2895423, y: 0.93435806} m_AnchoredPosition: {x: 2.9500732, y: -1.7998047} - m_SizeDelta: {x: -0.83999634, y: 5.9396973} + m_SizeDelta: {x: -0.83999634, y: 5.9396896} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &586134487 GameObject: @@ -2029,7 +2040,7 @@ GameObject: - component: {fileID: 632503726} - component: {fileID: 632503725} m_Layer: 5 - m_Name: Text (Legacy) + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -2896,6 +2907,7 @@ GameObject: - component: {fileID: 935748551} - component: {fileID: 935748553} - component: {fileID: 935748552} + - component: {fileID: 935748554} m_Layer: 5 m_Name: BettingBtns m_TagString: Untagged @@ -2910,7 +2922,7 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 935748550} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 @@ -2918,8 +2930,8 @@ RectTransform: - {fileID: 1227559356} - {fileID: 1954526985} - {fileID: 1737087530} - m_Father: {fileID: 142654719} - m_RootOrder: 12 + m_Father: {fileID: 1225833476} + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.15748437} m_AnchorMax: {x: 0.5, y: 0.15748437} @@ -2964,6 +2976,22 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 935748550} m_CullTransparentMesh: 1 +--- !u!114 &935748554 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 935748550} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4fb563e68ba8d9747a0dc8bd431d8495, type: 3} + m_Name: + m_EditorClassIdentifier: + BetList: {fileID: 1737087529} + NumBtn: {fileID: 1954526986} + BetText: {fileID: 251123273} + BetValue: 0 --- !u!1 &1049673026 GameObject: m_ObjectHideFlags: 0 @@ -3568,6 +3596,10 @@ RectTransform: - {fileID: 142654719} - {fileID: 760515341} - {fileID: 86707888} + - {fileID: 935748551} + - {fileID: 580834436} + - {fileID: 252325264} + - {fileID: 332149378} m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -3711,7 +3743,7 @@ GameObject: - component: {fileID: 1227980072} - component: {fileID: 1227980071} m_Layer: 5 - m_Name: Text (Legacy) + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -4859,7 +4891,7 @@ GameObject: - component: {fileID: 1565478605} - component: {fileID: 1565478604} m_Layer: 5 - m_Name: Text (Legacy) + m_Name: Text m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -6540,11 +6572,11 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 142654719} - m_RootOrder: 10 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0.12415764} - m_AnchoredPosition: {x: 0, y: -0.49951172} + m_AnchoredPosition: {x: 0, y: -0.49902344} m_SizeDelta: {x: -3, y: -1} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &2029421262 diff --git a/TheStrongestSnail/Assets/Scripts/Battle_Royale.meta b/TheStrongestSnail/Assets/Scripts/Battle_Royale.meta new file mode 100644 index 0000000..def66a2 --- /dev/null +++ b/TheStrongestSnail/Assets/Scripts/Battle_Royale.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a04ee1d11f4fbf14cbabb39c94909c0a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs b/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs new file mode 100644 index 0000000..fb33032 --- /dev/null +++ b/TheStrongestSnail/Assets/Scripts/Battle_Royale/BettingBtn.cs @@ -0,0 +1,44 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class BettingBtn : MonoBehaviour +{ + public GameObject BetList; + public Button NumBtn; + public Text BetText; + public float BetValue;//ͶעµÄÖµ + // Start is called before the first frame update + void Start() + { + BetList.SetActive(false); + NumBtn.onClick.AddListener(OnClickNumBtn); + BetValue = 50;//ĬÈÏ50 + SetBet(); + } + + void OnClickNumBtn() + { + BetList.SetActive(true); + + } + + void SetBet() + { + // »ñÈ¡ËùÓеÄButton×é¼þ + Button[] buttons = BetList.GetComponentsInChildren