You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
538 B
25 lines
538 B
using UnityEngine;
|
|
|
|
public class StandUpCollider : MonoBehaviour
|
|
{
|
|
public bool ispushing;
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
IceBlockPush block = other.gameObject.GetComponent<IceBlockPush>();
|
|
if (block != null)
|
|
{
|
|
ispushing = true;
|
|
}
|
|
}
|
|
|
|
private void OnTriggerExit(Collider other)
|
|
{
|
|
IceBlockPush block = other.gameObject.GetComponent<IceBlockPush>();
|
|
if (block != null)
|
|
{
|
|
ispushing = false;
|
|
}
|
|
}
|
|
}
|