mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-31 06:05:05 -05:00
-Included Toon Shaders -Included Movement and Popup Scripts -Included WallRun Demo -Added Materials
34 lines
665 B
C#
34 lines
665 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class PopupController : MonoBehaviour
|
|
{
|
|
public Text Popup;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
if( other.tag == "Player")
|
|
{
|
|
if (Popup.gameObject.activeInHierarchy)
|
|
{
|
|
Popup.gameObject.SetActive(false);
|
|
} else
|
|
{
|
|
Popup.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|
|
}
|