Пример #1
0
        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>();
        }
Пример #2
0
        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>();
        }
Пример #3
0
 private void Awake()
 {
     m_CarController = GetComponent <CarController>();
     pathfinder      = GetComponent <PathFindingBehaviour>();
 }
Пример #4
0
 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>();
 }
Пример #5
0
 private void Awake()
 {
     carController = GetComponent <VehicleController>();
     pathfinder    = GetComponent <PathFindingBehaviour>();
 }