Fungus.Draggable2D.LateUpdate C# (CSharp) Method

LateUpdate() protected method

protected LateUpdate ( ) : void
return void
        protected virtual void LateUpdate()
        {
            // iTween will sometimes override the object position even if it should only be affecting the scale, rotation, etc.
            // To make sure this doesn't happen, we force the position change to happen in LateUpdate.
            if (updatePosition)
            {
                transform.position = newPosition;
                updatePosition = false;
            }
        }