Ejemplo n.º 1
0
 public void OnClickStart()
 {
     _mainMenuObjects.SetActive(false);
     _modeSelectObjects.SetActive(true);
     _audioManager.Play("UIButton");
     StaticDataContainer.ResetStats();
 }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
        //
        // 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);
        }
Ejemplo n.º 4
0
        //
        // 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));
        }
Ejemplo n.º 5
0
        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);
                }
            }
        }
Ejemplo n.º 6
0
    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();
    }
Ejemplo n.º 7
0
		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);
				}
			}
		}
Ejemplo n.º 8
0
		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);
				}
			}
		}