Ejemplo n.º 1
0
 void SetFocus(Interactible newFocus)
 {
     if (newFocus != focus)
     {
         if (focus != null)
         {
             focus.OnDefocused();
         }
         focus = newFocus;
         m_motor.FollowTarget(newFocus);
     }
     focus.OnFocused(transform);
 }
Ejemplo n.º 2
0
 void SetFocus(Interactible focus)
 {
     if (onFocus != focus)
     {
         if (onFocus != null)
         {
             onFocus.OnDefocused();
         }
         onFocus = focus;
         playerMotor.FollowTarget(focus);
     }
     focus.OnFocused(transform);
 }
Ejemplo n.º 3
0
 void SetFocus(Interactible newFocus)
 {
     Debug.Log("SetFocus invoked. Equipped something");
     if (newFocus != focus)
     {
         if (focus != null)
         {
             focus.OnDefocused();
         }
         focus = newFocus; // Set our new focus
         Debug.Log("Focused now set to " + focus.name);
     }
     newFocus.OnFocused(transform);
     //isFoilHatEquipped();
 }