void Awake() { if (_instance != null) { Debug.Log("Instance already exists!"); Destroy(transform.gameObject); return; } _instance = this; checkpointButton.gameObject.SetActive(true); resumeFromCheckpointButton.gameObject.SetActive(false); // DoMicTest (); // if(Application.loadedLevel==0) // InitMainMenuLabels (); // CheckGamifiedStatus (); // if (SceneManager.GetActiveScene ().name == "EndMenu") { // AttachSceneController (); ChangeFirstEnvironment(); // ChangeReevalType (); reevalType = ReevalType.Transition; InitMainMenuLabels(); SetConnectionMethod(); SetSessionDay(); SetControlDevice(); SetControlToggle(); // reevalType = ReevalType.Reward; // } }
public void ChangeReevalType() { Debug.Log("reeval dropdown val: " + reevalDropdown.value.ToString()); switch (reevalDropdown.value) { case 0: reevalType = ReevalType.Transition; break; case 1: reevalType = ReevalType.Reward; break; default: reevalType = ReevalType.Transition; break; } }