public void OnClickYZSetPhase() { if (m_nowSetPhase != SetPhase.Tutorial) { m_nowSetPhase = SetPhase.YZSet; } }
public void OnClickEndPhase() { if (m_nowSetPhase != SetPhase.Tutorial) { m_nowSetPhase = SetPhase.SetEnd; m_setPhaseButtons.SetActive(false); } }
/// <summary> /// SetPhaseが変わったときの処理(一度だけ呼ばれる) /// </summary> /// <param name="phase"></param> void OnChangeSetPhase(SetPhase phase) { switch (phase) { case SetPhase.Tutorial: StartTutorial(); break; default: break; } }
/// <summary> /// このメソッドを用いてSetPhaseを変更する /// </summary> /// <param name="phase"></param> public void SetSetPhase(SetPhase phase) { m_nowSetPhase = phase; OnChangeSetPhase(m_nowSetPhase); }
void Awake() { m_nowSetPhase = SetPhase.Initialize; }