void SetFocus(Interactible newFocus) { if (newFocus != focus) { if (focus != null) { focus.OnDefocused(); } focus = newFocus; m_motor.FollowTarget(newFocus); } focus.OnFocused(transform); }
void SetFocus(Interactible focus) { if (onFocus != focus) { if (onFocus != null) { onFocus.OnDefocused(); } onFocus = focus; playerMotor.FollowTarget(focus); } focus.OnFocused(transform); }
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(); }