示例#1
0
 private void Start()
 {
     anim     = GetComponentInChildren <Animator>();
     movement = GetComponent <EnemyMovement>();
 }
        private void Start()
        {
            _movement = GetComponent <EnemyMovement>();

            _movement.TargetReached += (sender, args) => StartCoroutine(StartCooldownCoroutine());
        }