View difference between Paste ID: cHm87JLM and 6zSHnmc8
SHOW: | | - or go back to the newest paste.
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
}