Пример #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         if (playerShooting != null)
         {
             playerShooting.AddColorMode(colorType);
             Destroy(gameObject);
         }
     }
 }