From 250ec922d49003891f4125f6d452d64b61a4a959 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 11 May 2023 09:41:42 -0400 Subject: [PATCH] recording scene name --- namedropper/Assets/_FortuneWheel/Scripts/FortuneWheel.cs | 5 +++++ 1 file changed, 5 insertions(+) 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()