public void Reset()
 {
     State = ToolbarStateEnum.Default;
     if (boundingBox != null)
     {
         boundingBox.AcceptInput = false;
     }
     FollowBoundingBox(false);
     lastTimeTapped = Time.time + coolDownTime;
 }
 public void Start()
 {
     State = ToolbarStateEnum.Default;
     if (Interactibles.Count == 0)
     {
         // Create our base buttons
         // TODO - create custom buttons using templates
         CreateButton(ButtonTypeEnum.Remove);
         CreateButton(ButtonTypeEnum.Adjust);
         CreateButton(ButtonTypeEnum.Hide);
         CreateButton(ButtonTypeEnum.Show);
         CreateButton(ButtonTypeEnum.Done);
     }
 }
        protected override void OnTapped(GameObject obj, InteractionManager.InteractionEventArgs eventArgs)
        {
            if (Time.time < lastTimeTapped + coolDownTime)
            {
                return;
            }

            lastTimeTapped = Time.time;

            base.OnTapped(obj, eventArgs);

            switch (obj.name)
            {
            case "Remove":
                // Destroy the target object
                GameObject.Destroy(boundingBox.Target);
                // Set our bounding box to null so we'll disappear
                boundingBox = null;
                break;

            case "Adjust":
                // Make the bounding box active so users can manipulate it
                State = ToolbarStateEnum.Manipulation;
                break;

            case "Hide":
                // Make the bounding box inactive and invisible
                State = ToolbarStateEnum.Hidden;
                break;

            case "Show":
                State = ToolbarStateEnum.Default;
                break;

            case "Done":
                State = ToolbarStateEnum.Default;
                break;

            default:
                break;
            }
        }