Browse Source

recording scene name

combinedRaceAndNameDropper
Josh 2 years ago
parent
commit
250ec922d4
  1. 5
      namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs

5
namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs

@ -19,6 +19,7 @@
public GameObject winParticles;
int _selectReward, _coins, count = 0, cost = 300;
string _sceneName = "";
AudioSource[] audSource;
WheelPart[] wheelParts;
DotLight[] lightObjs;
@ -46,6 +47,9 @@
set
{
_selectReward = Mathf.Clamp(value, 0, FortuneWheelConfig.Instance.prizes.Length);
_sceneName = FortuneWheelConfig.Instance.prizes[_selectReward];
Debug.Log("Set scene name: " + _sceneName);
/*
if (spinning)
{
// selectedText.text = FortuneWheelConfig.GetValueFormated(FortuneWheelConfig.Instance.prizes[_selectReward]);
@ -54,6 +58,7 @@
{
selectedText.text = "";
}
*/
}
}
public void onClickSpinNow()

Loading…
Cancel
Save