clickedObject method

List<SelectedObjects> clickedObject()

Implementation

List<SelectedObjects> clickedObject(){
  if(isClicked){
    prevObjectTappedOn = objectTappedOn;
    tapLocation = null;
    currentSize = null;
    isClicked = false;
  }
  else if(objectTappedOn.isEmpty){
    prevObjectTappedOn = objectTappedOn;
  }
  return prevObjectTappedOn;
}