Example #1
0
    private void SetFocus(IntractableO newFocus)
    {
        if (newFocus != focus && focus != null)
        {
            focus.OnDeFocused();
        }
        focus = newFocus;

        if (focus != null)
        {
            newFocus.OnFocused(transform);

            motor.FollowTarget(newFocus);
        }
    }