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

Loading…
Cancel
Save