// Use this for initialization void Start() { basePos = this.transform.position; if (this.name.Contains("(Clone)")) { EAR = thisobj.GetComponent <EnemyAttackRange>(); Debug.Log(EAR); EnemyPos = EAR.getTargetObj().transform.position; } }
void Start() { enemyAnimator = GetComponent <Animator>(); attack = attackRange.GetComponent <EnemyAttackRange>(); }