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