コード例 #1
0
ファイル: ArcadeCarPhysics.cs プロジェクト: Vaskrol/Break-In
 public ArcadeCarPhysics(GameObject player, VehicleBase currentVehicle)
 {
     HandlingObject  = player;
     _currentVehicle = currentVehicle;
     SetSpecifications();
     CurrentCondition = HandlingCondition.OnGround;
 }
コード例 #2
0
    public RigidbodyStupidEnemyCarHandling(GameObject enemy)
    {
        HandlingObject = enemy;

        _currentVehicle = HandlingObject.GetComponent <IVehicle>();
        _vehicleRb      = HandlingObject.GetComponent <Rigidbody2D>();
        SetSpecifications();
        CurrentCondition = HandlingCondition.OnGround;
    }
コード例 #3
0
    public StupidEnemyCarHandling(GameObject enemy, VehicleBase currentVehicle)
    {
        HandlingObject  = enemy;
        _currentVehicle = currentVehicle;
        _pathFinder     = new StupidPathFinder();
        _prevPosition   = HandlingObject.transform.position;
        SetSpecifications();

        UpdateHandling();
        CurrentCondition = HandlingCondition.OnGround;
    }