Files
Gabriel Vidal-Ayrinhac 6d185753f6 initial commit
2021-02-04 23:10:52 +01:00

24 lines
422 B
C#

using UnityEngine;
using System.Collections;
public class Cross : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void OnTriggerEnter( Collider other ) {
if (other.name == "Bowl")
other.GetComponent<Bowl> ().onCross = true;
}
void OnTriggerExit( Collider other ) {
if (other.name == "Bowl")
other.GetComponent<Bowl> ().onCross = false;
}
}