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