// Start is called before the first frame update void Start() { fireButton = GetComponent <VehicleAbilityBehavior>(); _carHolder = GetComponent <AIBehaviour>(); if (_carHolder.GetComponent <VoidWasp_Attack>() == true) { _attackHolder = _carHolder.GetComponent <VoidWasp_Attack>(); isVoidWasp = true; } }
private void Start() { velHolder = handler.GetComponent <Rigidbody>(); behaviour = GetComponent <AIBehaviour>(); }
public void updateAI(AIBehaviour i) { i.SwapSpline(orderedSplines[i.GetComponent <RaycastCar>().activeSpline].GetComponent <SplinePlus>(), arenaEntrance); }