public void Clear()
 {
     if (_evidenceSprite != null) {
         _evidenceSprite.gameObject.SetActive(false);
         if (_evidenceTween != null) _evidenceTween.Pause();
     }
     if (rolloverEffects && uiElement != null) uiElement.SimulateRollOut();
     rowId = columnId = -1;
     contentGroup = null;
     uiElement = null;
 }
 //----------------------------------------------------
 public DataSet getAllContentGroups()
 {
     ContentGroup content = new ContentGroup();
     return content.getAllContentGroups(SiteId);
 }
 public void SetFocus(ContentGroup focusContentGroup, int focusRowId, int focusColumnId)
 {
     if (rolloverEffects && uiElement != null) uiElement.SimulateRollOut();
     contentGroup = focusContentGroup;
     rowId = focusRowId;
     columnId = focusColumnId;
     uiElement = contentGroup.uiElements[focusRowId][focusColumnId];
     if (rolloverEffects) uiElement.SimulateRollOver();
     if (_evidenceSprite != null) {
         // Set evidence sprite
         Vector3 evidencePos = uiElement.bounds.center;
         evidencePos.z -= 1;
         _evidenceSprite.transform.position = evidencePos;
         Vector2 size = uiElement.bounds.size;
         size.x += evidenceBorder * 2;
         size.y += evidenceBorder * 2;
         _evidenceSprite.dimensions = size;
         _evidenceSprite.gameObject.SetActive(true);
         if (_evidenceTween != null) _evidenceTween.Restart();
     }
 }
 public bool IsLeftOf(ContentGroup cGroup)
 {
     return bounds.max.x < cGroup.bounds.max.x && IntersectsY(cGroup.bounds);
 }
 public bool IsRightOf(ContentGroup cGroup)
 {
     return bounds.min.x > cGroup.bounds.min.x && IntersectsY(cGroup.bounds);
 }
 public bool IsBelowOf(ContentGroup cGroup)
 {
     return bounds.max.y < cGroup.bounds.max.y && IntersectsX(cGroup.bounds);
 }
 public bool IsAboveOf(ContentGroup cGroup)
 {
     return bounds.min.y > cGroup.bounds.min.y && IntersectsX(cGroup.bounds);
 }