34 lines
696 B
C#
34 lines
696 B
C#
using SHADE;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using static Item;
|
|
|
|
|
|
public class TriggerTest : Script
|
|
{
|
|
public Collider collider { get; set; }
|
|
|
|
protected override void awake()
|
|
{
|
|
collider = GetComponent<Collider>();
|
|
}
|
|
|
|
protected override void onTriggerEnter(CollisionInfo info)
|
|
{
|
|
base.onTriggerEnter(info);
|
|
Debug.Log("Trigger Enter");
|
|
}
|
|
|
|
protected override void onTriggerStay(CollisionInfo info)
|
|
{
|
|
base.onTriggerStay(info);
|
|
Debug.Log("Trigger Stay");
|
|
}
|
|
|
|
protected override void onTriggerExit(CollisionInfo info)
|
|
{
|
|
base.onTriggerExit(info);
|
|
Debug.Log("Trigger Exit");
|
|
}
|
|
};
|