33 lines
533 B
C#
Raw Normal View History

2026-01-28 20:57:35 +05:30
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DiceSide : MonoBehaviour
{
private bool onGround;
public int sideValue;
private void OnTriggerStay(Collider other)
{
if(other.tag == "Platform")
{
onGround = true;
}
}
private void OnTriggerExit(Collider other)
{
if(other.tag == "Platform")
{
onGround = false;
}
}
public bool OnGround()
{
return onGround;
}
}