giganciprogramowania

AreaScript l15

Jun 16th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. public class AreaScript : MonoBehaviour
  4. {
  5.     public FleetScript fleet;
  6.  
  7.     private void OnTriggerEnter2D(Collider2D collision)
  8.     {
  9.         if (collision.gameObject.tag == "Alien")
  10.         {
  11.             fleet.StopGame(false);
  12.         }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment