public void OnClickStart() { _mainMenuObjects.SetActive(false); _modeSelectObjects.SetActive(true); _audioManager.Play("UIButton"); StaticDataContainer.ResetStats(); }
public new void Define() { // FIXME: Temporary hack for repl to reset static_data = null; InitializePredefinedTypes(); foreach (TypeContainer tc in types) { tc.DefineType(); } foreach (TypeContainer tc in types) { tc.ResolveTypeParameters(); } foreach (TypeContainer tc in types) { try { tc.Define(); } catch (Exception e) { throw new InternalErrorException(tc, e); } } }
// // Makes const data field inside internal type container // public FieldSpec MakeStaticData(byte[] data, Location loc) { if (static_data == null) { static_data = new StaticDataContainer (this); static_data.CreateContainer (); static_data.DefineContainer (); AddCompilerGeneratedClass (static_data); } return static_data.DefineInitializedData (data, loc); }
// // Makes const data field inside internal type container // public FieldSpec MakeStaticData(byte[] data, Location loc) { if (static_data == null) { static_data = new StaticDataContainer(this); static_data.CreateContainer(); static_data.DefineContainer(); AddCompilerGeneratedClass(static_data); } return(static_data.DefineInitializedData(data, loc)); }
public new void Define() { builder = assembly.CreateModuleBuilder(); // FIXME: Temporary hack for repl to reset static_data = null; // TODO: It should be done much later when the types are resolved // but that require DefineType clean-up ResolveGlobalAttributes(); foreach (TypeContainer tc in types) { tc.CreateType(); } InitializePredefinedTypes(); foreach (TypeContainer tc in types) { tc.DefineType(); } foreach (TypeContainer tc in types) { tc.ResolveTypeParameters(); } foreach (TypeContainer tc in types) { try { tc.Define(); } catch (Exception e) { throw new InternalErrorException(tc, e); } } }
private void DisplayHighscores() { FindObjectOfType <InputTimer>().ResetTimer(); for (int i = 0; i < _keyboard.Length; i++) { _keyboard[i].SetActive(false); } for (int i = 0; i < _dailyHighscoreList.Count; i++) { _dailyTopTenNames[i].text = _dailyHighscoreList[i].Name; _dailyTopTenScores[i].text = _dailyHighscoreList[i].Score.ToString(); } for (int i = 0; i < _allTimeHighscoreList.Count; i++) { _allTimeTopTenNames[i].text = _dailyHighscoreList[i].Name; _allTimeTopTenScores[i].text = _dailyHighscoreList[i].Score.ToString(); } _scoreBoard.SetActive(true); StaticDataContainer.ResetStats(); }
public new void Define () { builder = assembly.CreateModuleBuilder (); // FIXME: Temporary hack for repl to reset static_data = null; // TODO: It should be done much later when the types are resolved // but that require DefineType clean-up ResolveGlobalAttributes (); foreach (TypeContainer tc in types) tc.CreateType (); InitializePredefinedTypes (); foreach (TypeContainer tc in types) tc.DefineType (); foreach (TypeContainer tc in types) tc.ResolveTypeParameters (); foreach (TypeContainer tc in types) { try { tc.Define (); } catch (Exception e) { throw new InternalErrorException (tc, e); } } }
public new void Define () { builder = assembly.CreateModuleBuilder (); // FIXME: Temporary hack for repl to reset static_data = null; foreach (TypeContainer tc in types) tc.CreateType (); InitializePredefinedTypes (); foreach (TypeContainer tc in types) tc.DefineType (); foreach (TypeContainer tc in types) tc.ResolveTypeParameters (); foreach (TypeContainer tc in types) { try { tc.Define (); } catch (Exception e) { throw new InternalErrorException (tc, e); } } }