private void Awake() { // get the car controller reference m_CarController = GetComponent <CarController>(); // give the random perlin a random value m_RandomPerlin = Random.value * 100; pathfinder = GetComponent <PathFindingBehaviour>(); }
virtual protected void Start() { //selectUI = transform.Find("Highlight").gameObject; pathfinder = GetComponent <PathFindingBehaviour>(); combat = GetComponent <CombatBehaviour>(); animator = GetComponentInChildren <Animator>(); baseColor = colorRenderer.material.color; groupManager = GameObject.FindGameObjectWithTag("Manager").GetComponentInChildren <GroupManager>(); unitType = unitStats.unitType; radius = unitStats.radius; inputManager = FindObjectOfType <InputManager>(); }
private void Awake() { m_CarController = GetComponent <CarController>(); pathfinder = GetComponent <PathFindingBehaviour>(); }
private void Start() { // get the components on the object we need ( should not be null due to require component so no need to check ) Character = GetComponent <ThirdPersonCharacter>(); pathfinder = GetComponent <PathFindingBehaviour>(); }
private void Awake() { carController = GetComponent <VehicleController>(); pathfinder = GetComponent <PathFindingBehaviour>(); }