//Start & Upda protected void BaseAwake() { enemy = transform.GetChild(0).gameObject; enemy_attack = transform.GetComponentInChildren <Enemy_Attack>(); enemy_dead = transform.GetComponent <Enemy_Dead>(); spriteRenderer = transform.GetChild(0).GetComponent <SpriteRenderer>(); animator = GetComponent <Animator>(); rb2d = GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { enemy_Dead = GetComponent <Enemy_Dead>(); }