Esempio n. 1
0
    void fatalStrikeMove(sdGameActor _gameActor, int s, int e, float speed)
    {
        if (_gameActor.AnimController != null)
        {
            AnimationState aniStateTemp = aniState;

            if (aniStateTemp != null)
            {
                //float f = aniState.normalizedTime - (float)Math.Floor(aniState.normalizedTime);
                int f = (int)(aniStateTemp.normalizedTime * 10000.0f);
                if (f > s && f <= e)
                {
                    if (belongToSkill != null && belongToSkill.id == 1002)
                    {
                        _gameActor.moveGravity(_gameActor.GetDirection() * speed);
                    }
                    else
                    {
                        _gameActor.moveInternal(_gameActor.GetDirection() * speed);
                    }
                }
            }
            //<
        }
    }