Esempio n. 1
0
    private void Awake()
    {
        //GetObjects
        _BoxColliderTransform       = transform.GetChild(0);
        _ModelTransform             = transform.GetChild(1);
        _CameraTransform            = transform.GetChild(2);
        _OrientationLookAtTransform = transform.GetChild(3);

        //GetComponents
        _Physics     = GetComponent <CarPhysicsV3>();
        _Behaviour   = GetComponent <CarBehaviourOld>();
        _Inputs      = GetComponent <PlayerInputs>();
        _BoxCollider = _BoxColliderTransform.GetComponent <BoxCollider>();
    }
Esempio n. 2
0
 public StateOld(CarBehaviourOld controller)
 {
     _Car = controller;
 }
Esempio n. 3
0
 public DriftRightOld(CarBehaviourOld controller)
 {
     _Car = controller;
 }
Esempio n. 4
0
 public NormalDriveOld(CarBehaviourOld controller)
 {
     _Car = controller;
 }