void Start() { _BoxCollider = GetComponent <BoxCollider>(); _VertexPositionsOfBoxCollider = GetComponent <GetVertexPositionsOfBoxCollider>(); _CompressionRatios = new float[4]; _SurviceNormals = new Vector3[_CompressionRatios.Length]; _PreSurviceNormals = new Vector3[_SurviceNormals.Length]; }
private void Awake() { //GetCarObjects _ModelTransform = transform.GetChild(0); _CameraTransform = transform.GetChild(1); _OrientationLookAtTransform = transform.GetChild(2); _SplineProjection = transform.GetChild(3); //GetCarComponents _HoverHandler = GetComponent <CarHoverHandler>(); _Behaviour = GetComponent <CarBehaviour>(); _Inputs = GetComponent <PlayerInputs>(); _ParticleHandler = GetComponent <CarParticleHandler>(); _CarAudioHandler = GetComponent <CarAudioHandler>(); _ColliderVertices = GetComponent <GetVertexPositionsOfBoxCollider>(); if (_IsAI) { _CameraTransform.gameObject.SetActive(false); } }
void Start() { _BoxCollider = GetComponent <BoxCollider>(); _VertexPositionsOfBoxCollider = GetComponent <GetVertexPositionsOfBoxCollider>(); }