Exemplo n.º 1
0
    private void Update()
    {
        int        tickCount = Environment.TickCount;
        NrCharBase @char     = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        if (NkInputManager.anyKey)
        {
            this.i32CheckTime = tickCount;
        }
        else if (@char != null && @char.IsAutoMove())
        {
            this.i32CheckTime = tickCount;
        }
        if (tickCount > this.i32CheckTime + this.i32PlayStateChangeTIme)
        {
            this.SetChangeUserPlayState(false);
            if (tickCount > this.i32MemCheckTime + this.i32MemChaeckPeriodTIme)
            {
                NrTSingleton <NrMainSystem> .Instance.MemoryCleanUP();

                this.i32MemCheckTime = tickCount;
            }
        }
        else
        {
            this.SetChangeUserPlayState(true);
        }
    }