Example #1
0
 private void OnParticleCollision(GameObject particle)
 {
     if (particle.CompareTag("Sound"))
     {
         Police.Chase();
     }
 }
Example #2
0
 public void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         Police.Chase();
         Police.seePlayer = true;
     }
     else
     {
         Police.seePlayer = false;
     }
 }