Files
riz-au-lait-ui/Assets/Scripts/ReplacerJoueur.cs
2025-12-10 18:51:40 +01:00

13 lines
301 B
C#

using UnityEngine;
public class ReplacerJoueur : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
Debug.LogWarning("Entrée dans la collision " + other.name);
if (other.CompareTag("Player"))
other.transform.position = new Vector3(0f, 1f, 4f);
}
}