Example #1
0
 public virtual void GetDrawerOut()
 {
     MainDrawerHandler.SetDrawerToOut(TheDrawerDirection);
     if (Comp_Animator == null)
     {
         Comp_Animator = GetComponent <Animator>();
     }
     Comp_Animator.SetBool("GetIn", false);
 }
Example #2
0
 public virtual void BringDrawerIn()
 {
     MainDrawerHandler.SetDrawerToIn(TheDrawerDirection, this);
     if (Comp_Animator == null)
     {
         Comp_Animator = GetComponent <Animator>();
     }
     Comp_Animator.SetBool("GetIn", true);
 }
 void OnLongPressMover(LongPressGesture gesture)
 {
     if (gesture.Selection == this.gameObject)
     {
         if (!GUISprites.isOnAGUIElement)
         {
             MainDrawerHandler.CloseAllOpenDrawers();
             ShowSelectedState();
             ChangePositionHandler.SelectMovingObject(this);
         }
     }
 }