public ArcadeCarPhysics(GameObject player, VehicleBase currentVehicle) { HandlingObject = player; _currentVehicle = currentVehicle; SetSpecifications(); CurrentCondition = HandlingCondition.OnGround; }
public RigidbodyStupidEnemyCarHandling(GameObject enemy) { HandlingObject = enemy; _currentVehicle = HandlingObject.GetComponent <IVehicle>(); _vehicleRb = HandlingObject.GetComponent <Rigidbody2D>(); SetSpecifications(); CurrentCondition = HandlingCondition.OnGround; }
public StupidEnemyCarHandling(GameObject enemy, VehicleBase currentVehicle) { HandlingObject = enemy; _currentVehicle = currentVehicle; _pathFinder = new StupidPathFinder(); _prevPosition = HandlingObject.transform.position; SetSpecifications(); UpdateHandling(); CurrentCondition = HandlingCondition.OnGround; }