Пример #1
0
 public void InitBehaviour(VehicleBehaviour behaviour)
 {
     #if UNITY_EDITOR
     BehaviourTag = behaviour.Tag;
     #endif
     _behaviour?.Destruct();
     _behaviour = behaviour;
     _behaviour.SetVehicle(this);
     _behaviour.TurnOn();
 }