diff --git a/namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs b/namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs index b402253..66d2771 100644 --- a/namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs +++ b/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()