示例#1
0
 void Awake()
 {
     inputs = GetComponent <CarInputs>();
     rg     = GetComponent <Rigidbody>();
     wheelsInterpolation = new Lerp(0f).SetInterpolationSpeed(5f);
 }
示例#2
0
 private void Awake()
 {
     rb          = GetComponent <Rigidbody>();
     boxCollider = GetComponent <BoxCollider>();
     inputs      = GetComponent <CarInputs>();
 }