예제 #1
0
 void Awake()
 {
     spriteRenderer = GetComponent <SpriteRenderer>();
     blinkAnimation = GetComponent <BinkAnimation>();
     rb             = GetComponent <Rigidbody2D>();
     pool           = GetComponentInParent <ObjectPool>();
     col            = GetComponent <BoxCollider2D>();
 }
예제 #2
0
 void Awake()
 {
     playerTransform = Player.Instance.transform;
     weapon          = GetComponent <EnemyWeapon>();
     blinkAnimation  = GetComponent <BinkAnimation>();
 }