public void RemoveCursorBound(CursorBoundsCollider boundCol) { if (!collidingCursorBounds.Contains(boundCol)) { return; } collidingCursorBounds.Remove(boundCol); OnCursorBoundsUpdated(); }
/* * 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(); }