Beispiel #1
0
 // Update is called once per frame
 void LateUpdate()
 {
     if (!m_isGrabbed && m_caressedByGrubbyHands && (Input.GetMouseButton(0)) && !m_planetController.m_holdingSomething)
     {
         m_isGrabbed = true;
         m_planetController.Grab(gameObject);
         m_problemController.Grabbed();
     }
     else if (m_isGrabbed)
     {
         if (Input.GetMouseButtonUp(0))
         {
             ReleaseMeFilthyHands();
         }
         else
         {
             CarryMeFiltyHands();
         }
     }
 }