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