Пример #1
0
 void OnTriggerEnter2D(Collider2D collision) //Activate the target when the sensor is triggered. Right now the triggering tag is environmentBall. May be subject to change.
 {
     if (collision.gameObject.tag == "environmentBall")
     {
         AudioManager.Instance.PlayPuzzleSound("MuffledClunk");
         target.Activate();
         locked = false;
     }
 }