Beispiel #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         shake.StartShake();
         Instantiate(boulder, new Vector2(-22, -7.5f), Quaternion.identity);
     }
 }