Exemplo n.º 1
0
 public void RemoveCursorBound(CursorBoundsCollider boundCol)
 {
     if (!collidingCursorBounds.Contains(boundCol))
     {
         return;
     }
     collidingCursorBounds.Remove(boundCol);
     OnCursorBoundsUpdated();
 }
Exemplo n.º 2
0
    /*
     * void SetMainCursor(Texture2D _texture)
     * {
     *      mainCursorImg.texture = _texture;
     *      mainCursor.sizeDelta = new Vector2 (_texture.width, _texture.height);
     * }
     */


    /*
     * Cursor bounds functionality
     * Potentially deprecated
     */

    public void AddCursorBound(CursorBoundsCollider boundCol)
    {
        if (collidingCursorBounds.Contains(boundCol))
        {
            return;
        }

        collidingCursorBounds.Add(boundCol);
        OnCursorBoundsUpdated();
    }