Beispiel #1
0
        private void DoReset()
        {
            gameProcess = PlayerPrefs.HasKey("TUTORIAL_FINISHED")
                ? new GameProcess(this) : new TutorialProcess(this, FinishTutorial);

            UpdateState(GameState.Quitted);
        }
Beispiel #2
0
 public CachedStreamMemory(IMemory mem, IGameProcess proc) : base(mem, proc)
 {
     pageInfo = new WinAPI.MEMORY_BASIC_INFORMATION()
     {
         RegionSize = IntPtr.Zero
     };
     pageData = null;
 }
Beispiel #3
0
    public void SetState(IGameProcess state)
    {
        if (_state != null)
        {
            _state.exit();
        }
        _state = state;

        _state.enter();
    }
Beispiel #4
0
 public GameEventInfoImpl(IGameProcess currentGameProcess)
 {
 }
Beispiel #5
0
 private void FinishTutorial()
 {
     PlayerPrefs.SetString("TUTORIAL_FINISHED", "DONE");
     gameProcess = new GameProcess(this);
 }
Beispiel #6
0
 public StreamMemory(IMemory mem, IGameProcess proc)
 {
     memory  = mem;
     process = proc;
 }