Fungus.Draggable2D.ChangeCursor C# (CSharp) Method

ChangeCursor() protected method

protected ChangeCursor ( Texture2D cursorTexture ) : void
cursorTexture UnityEngine.Texture2D
return void
        protected virtual void ChangeCursor(Texture2D cursorTexture)
        {
            if (!dragEnabled)
            {
                return;
            }

            Cursor.SetCursor(cursorTexture, Vector2.zero, CursorMode.Auto);
        }