private void Start() { enemyHurt = GetComponentInParent <EnemyHurt>(); enemyType = GetComponentInParent <EnemieType>(); uiController = FindObjectOfType <UIController>(); groundCheck = GetComponentInChildren <GroundCheck>(); ballTrue = true; // Carlos Mod enemiIA = GetComponentInParent <EnemiIA>(); aud = GetComponent <AudioSource>(); }
private void Start() { enemyLife = GetComponentInChildren <EnemyLife>(); rbEnemy = GetComponent <Rigidbody>(); enemieType = GetComponent <EnemieType>(); changeMaterial = GetComponentInChildren <ChangeMaterial>(); if (ChangeMaterialParentBeach != null && ChangeMaterialParentBeach.name == "meshenemigoplaya") { changeMaterialBeach = GetComponentInChildren <ChangeMaterialBeach>(); } else { changeMaterialBeach = null; } }
private void Start() { enemyTipe = GetComponentInParent <EnemieType>(); render = GetComponentsInChildren <Renderer>(); BeginEnemieMaterialType2(); }
public void SetData(int id, EnemieType type) { Id = id; MyType = type; }