コード例 #1
0
        private void Move(Vector2 _inputDirection)
        {
            if (!(_inputDirection.X == 0 && _inputDirection.Y == 0))
            {
                position += Vector2.Normalize(_inputDirection) * (occupied ? roamSpeed : moveSpeed) * (waitTimer > 0 ? 0 : 1);
            }

            ServerSend.AnimalData(this);
        }