projet-massimo-pfe/PFE OmniVR/Assets/Scripts/EnemyDetectorManager.cs
jimmy tremblay-Bernier c1bf5a4ca1 initial commit
2022-03-12 22:04:30 -04:00

22 lines
620 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyDetectorManager : MonoBehaviour
{
public void OnEnemyDetected(EnemyDetector.PointEntree pe)
{
PopupUI popup = GameObject.FindGameObjectWithTag("Popup").GetComponent<PopupUI>();
switch (pe)
{
case EnemyDetector.PointEntree.MurGauche:
popup.SetPopup("Ennemis au mur gauche!", true);
break;
case EnemyDetector.PointEntree.MurDroit:
popup.SetPopup("Ennemis au mur droit!", true);
break;
}
}
}