Example #1
0
        private void OnTriggerEnter(Collider other)
        {
            if (!other.gameObject.CompareTag(Constants.TAG_NOISE))
            {
                return;
            }

            responsePoint = other.gameObject.transform.position;
            OnStartResponding?.Invoke();
        }
Example #2
0
 public void InitializeResponderParameters(Vector3 newResponsePoint)
 {
     responsePoint = newResponsePoint;
     OnStartResponding?.Invoke();
 }