浏览代码

Merge branch 'master' into vfx-demo

/main
Thomas ICHÉ 5 年前
当前提交
204c5883
共有 2 个文件被更改,包括 19 次插入15 次删除
  1. 30
      Editor/WelcomeScreen/WelcomeScreen.cs
  2. 4
      Runtime/LevelScripting/Logic/NTimesLogic.cs

30
Editor/WelcomeScreen/WelcomeScreen.cs


using (new GUILayout.HorizontalScope())
{
GUILayout.FlexibleSpace();
bool value = false;
value = wizardMode == WizardMode.TipOfTheDay;
value = GUILayout.Toggle(value, " Tips ", Styles.buttonLeft);
if(value)
wizardMode = WizardMode.TipOfTheDay;
using (new GUILayout.HorizontalScope(EditorStyles.miniButton))
{
bool value = false;
value = wizardMode == WizardMode.FirstTimeSetup;
value = GUILayout.Toggle(value, " Setup ", Styles.buttonMid);
if (value)
wizardMode = WizardMode.FirstTimeSetup;
value = wizardMode == WizardMode.TipOfTheDay;
value = GUILayout.Toggle(value, " Tips ", Styles.buttonLeft);
if(value)
wizardMode = WizardMode.TipOfTheDay;
value = wizardMode == WizardMode.About;
value = GUILayout.Toggle(value, " About ", Styles.buttonRight);
if(value)
wizardMode = WizardMode.About;
value = wizardMode == WizardMode.FirstTimeSetup;
value = GUILayout.Toggle(value, " Setup ", Styles.buttonMid);
if (value)
wizardMode = WizardMode.FirstTimeSetup;
value = wizardMode == WizardMode.About;
value = GUILayout.Toggle(value, " About ", Styles.buttonRight);
if(value)
wizardMode = WizardMode.About;
}
GUILayout.FlexibleSpace();
}

4
Runtime/LevelScripting/Logic/NTimesLogic.cs


void Awake()
{
Reset();
ResetCount();
public void Reset()
public void ResetCount()
{
m_RemainingCount = Count;
}

正在加载...
取消
保存