Exemplo n.º 1
0
        public void SpinPreview(StaticObject soObject)
        {
            if (soObject == null || currPreview == null)
            {
                return;
            }

            float fRot = (float)soObject.getSetting("RotationAngle") + 0.1f;

            if (fRot > 360)
            {
                fRot -= 360;
            }

            soObject.setSetting("RotationAngle", fRot);
            soObject.update();
        }