SavePoge/Assets/Scripts/Water.cs
2023-02-08 14:56:59 +05:30

14 lines
305 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Water : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D other){
Debug.Log("Fell into water : " + other.name);
if(other.tag == "Player"){
GameManager.GameOver();
}
}
}