Exemple #1
0
 // Use this for initialization
 void Start()
 {
     entity  = GetComponent <RtsEntity>();
     metrics = CivilizationMetrics.singleton[entity.faction];
     StartCoroutine(AI());
 }
 void Start()
 {
     nv     = GetComponent <NavMeshAgent>();
     entity = GetComponent <RtsEntity>();
     target = transform.position;
 }
 void Start()
 {
     entity = GetComponent <RtsEntity>();
     InvokeRepeating("InstantiateUnit", craftTime, craftTime);
 }
 void Start()
 {
     movileEntity = GetComponent <MovileEntity>();
     entity       = GetComponent <RtsEntity>();
     InvokeRepeating("PrepareToAttack", cadence, cadence);
 }