Fixed
This commit is contained in:
parent
4308e88aac
commit
bca1a00ba8
|
|
@ -609,7 +609,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 40.900024, y: 0.000000028173}
|
||||
m_AnchoredPosition: {x: 40.900146, y: 0.000000028173}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &46486063
|
||||
|
|
@ -1301,6 +1301,7 @@ MonoBehaviour:
|
|||
offset: 0
|
||||
CurNumber: 7
|
||||
numText: {fileID: 1100245188}
|
||||
btnSpin: {fileID: 1031670608}
|
||||
--- !u!4 &74823594
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -8942,7 +8943,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0.000061035156, y: -38.546997}
|
||||
m_AnchoredPosition: {x: 0, y: -38.546997}
|
||||
m_SizeDelta: {x: -0.00012207, y: 77.095}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!20 &619456567
|
||||
|
|
@ -19586,7 +19587,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0.000061035156, y: -107.53259}
|
||||
m_AnchoredPosition: {x: 0, y: -107.53259}
|
||||
m_SizeDelta: {x: 0, y: 60.885315}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1252418501
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ public class Spinner : MonoBehaviour
|
|||
public int CurNumber;
|
||||
public float CurrentSpeed {get; private set;}
|
||||
public TMP_Text numText;
|
||||
|
||||
public GameObject btnSpin;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
|
@ -61,6 +63,7 @@ public class Spinner : MonoBehaviour
|
|||
}
|
||||
|
||||
IEnumerator spin(){
|
||||
btnSpin.SetActive(false);
|
||||
pushing=true;
|
||||
numText.text ="";
|
||||
float m_spinSmoothness = Random.Range(SpinSmoothness, SpinSmoothnessMax);
|
||||
|
|
@ -69,6 +72,7 @@ public class Spinner : MonoBehaviour
|
|||
yield return new WaitForFixedUpdate();
|
||||
}
|
||||
pushing = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -83,6 +87,8 @@ public class Spinner : MonoBehaviour
|
|||
|
||||
|
||||
OnSpinStopped.Invoke(LandedNumber);
|
||||
btnSpin.SetActive(true);
|
||||
|
||||
}
|
||||
|
||||
int GetLandedNumber(){
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user