Exemple #1
0
    void SetFocus(Interactable newFocus)
    {
        if (focus != newFocus)
        {
            if (focus != null)
            {
                focus.OnDefocused();
            }

            focus = newFocus;
            motor.follow(focus);
        }
        focus.OnFocused(transform);
    }