Пример #1
0
        public override void OnFixedUpdate(float deltaTime)
        {
            if (m_maininput == null)
            {
                return;
            }

            if (m_attackInputReady == false)
            {
                m_attackInputTime -= deltaTime;
                if (m_attackInputTime < 0f)
                {
                    m_attackInputReady = true;
                }
            }

            SetInput(m_maininput.GetInput());
            SetAxisInput(m_maininput.GetAxisInput());
            base.OnFixedUpdate(deltaTime);

            if (m_entity == null)
            {
                return;
            }
            if (m_entity.IsDeath)
            {
                return;
            }

            CheckMoveEvent();
        }