void Start() { myMelee = GetComponent <EnemyMeleeBehavior>(); myRanged = GetComponent <EnemyRangedBehavior>(); myBoss = GetComponent <EnemyBossBehavior>(); spriteRenderer = GetComponent <SpriteRenderer>(); animator = GetComponent <Animator>(); collider2D = GetComponent <BoxCollider2D>(); }
void Awake() { instance = this; }