// Use this for initialization void Start() { _surtAC = GetComponent <Surt_AnimationController>(); _transform = GetComponent <Transform>(); _rb = GetComponent <Rigidbody2D>(); _attack = GetComponentInChildren <Surt_Attack>(); }
// Use this for initialization void Start() { _movement = GetComponent <Surt_Movement>(); _attack = GetComponentInChildren <Surt_Attack>(); _hp = GetComponent <Enemy_HP>(); _animator = GetComponent <Animator>(); }
// Use this for initialization void Awake() { _transform = GetComponent <Transform>(); _attack = FindObjectOfType <Surt_Attack>(); _player = FindObjectOfType <Player_HP>(); _disableTimer = _disableTime; _surt = GameObject.Find("Surt"); _surtHP = _surt.GetComponent <Enemy_HP>(); }
// Use this for initialization void Start() { _attack = GetComponentInParent <Surt_Attack>(); }