Пример #1
0
 void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         Controls script = (Controls)other.transform.GetComponent(typeof(Controls));
         script.AddBluePrint(myBluePrint);
         Destroy(gameObject);
     }
 }