コード例 #1
0
ファイル: CarAIControl.cs プロジェクト: wchoujaa/RTS
        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
ファイル: CarAIControllerHybrid.cs プロジェクト: wchoujaa/RTS
 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
ファイル: VehicleAIControl.cs プロジェクト: wchoujaa/RTS
 private void Awake()
 {
     carController = GetComponent <VehicleController>();
     pathfinder    = GetComponent <PathFindingBehaviour>();
 }