void Start() { attackAI = gameObject.GetComponent<AttackAI>(); movementAI = gameObject.GetComponent<MovementAI>(); breakable = gameObject.GetComponentInChildren<BreakableManager>(); if (entityType == EntityType.Enemy) { AutoAlign(); } }
void Start() { breakable = gameObject.GetComponentInChildren<BreakableManager>(); if (entityType == EntityType.Enemy) { AutoAlign(); } }