20 lines
438 B
C#
20 lines
438 B
C#
|
/*
|
||
|
* author: sai puay
|
||
|
* date: 11/8/2024
|
||
|
* description: game run completion trigger collision
|
||
|
*/
|
||
|
|
||
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
/// <summary>
|
||
|
/// game run completion trigger collision class
|
||
|
/// </summary>
|
||
|
public class RunCompletionTrigger : MonoBehaviour
|
||
|
{
|
||
|
|
||
|
private void OnTriggerEnter(Collider other)
|
||
|
{
|
||
|
GameManager.Instance.SetDisplayState(GameManager.DisplayState.OverlayCompleteUnderTimeMenu);
|
||
|
}
|
||
|
}
|