Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     _surtAC    = GetComponent <Surt_AnimationController>();
     _transform = GetComponent <Transform>();
     _rb        = GetComponent <Rigidbody2D>();
     _attack    = GetComponentInChildren <Surt_Attack>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _movement = GetComponent <Surt_Movement>();
     _attack   = GetComponentInChildren <Surt_Attack>();
     _hp       = GetComponent <Enemy_HP>();
     _animator = GetComponent <Animator>();
 }
Exemplo n.º 3
0
 // 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>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     _attack = GetComponentInParent <Surt_Attack>();
 }