projet-massimo-pfe/PFE OmniVR/Assets/Scripts/EnemyDetectorManager.cs
jimmy tremblay-Bernier 86fbe09b20 initial commit
2022-03-12 20:32:56 -05: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;
}
}
}