Exemple #1
0
 void Start()
 {
     aniControl    = GetComponentInChildren <EnemyAnimation>();
     move          = GetComponent <EnemyMove>();
     status        = GetComponent <EnemyStatus>();
     lookDirection = aniControl.GetDirection();
     //적끼리의 물리적 충돌 무시 (밀림현상 방지)
     Physics2D.IgnoreLayerCollision(LayerMask.NameToLayer("Enemy"), LayerMask.NameToLayer("Enemy"), true);
 }