Пример #1
0
 void RemoveFocus()
 {
     if (focus != null)
     {
         focus.OnDefocused();
     }
     focus = null;
     motor.StopFollowingTarget();
 }
Пример #2
0
 public void RemoveFocus()
 {
     if (focus != null)
     {
         focus.OnDefocused(GetComponent <Interactable>());
         Debug.Log(" has a focus to be defocused!!!");
     }
     focus = null;
     motor.StopFollowingTarget();
 }
Пример #3
0
 public virtual void RemoveFocus()
 {
     _focus = null;
     _motor.StopFollowingTarget();
 }
Пример #4
0
 /// <summary>
 /// Удаление фокуса
 /// </summary>
 protected virtual void RemoveFocus()
 {
     Focus = null;
     Motor.StopFollowingTarget();
 }