Fixed
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user