Example #1
0
        public void Tick()
        {
            if (overlay == null)
            {
                return;
            }

            if (Type.UnifyOverlayTick)
            {
                overlay.SetTick((int)Window.GlobalTick);
            }
            else
            {
                overlay.Tick();
            }
        }
        public void Tick()
        {
            if (self.Angle != angle)
            {
                angle         = self.Angle;
                currentFacing = FacingFromAngle(angle);
            }
            var last = renderable;

            renderable = (BatchSequence)GetRenderable(self.Actions, currentFacing);

            if (last == null)
            {
                renderable?.Reset();
            }

            renderable?.Tick();
        }