Skip to content
Snippets Groups Projects
Commit 7e144e28 authored by MrWarzo's avatar MrWarzo :speech_balloon:
Browse files

Merge branch 'jordan.pereira-main-patch-33890' into 'main'

Update DragDropM.cs

See merge request !94
parents 4d2a0595 17d7f56a
1 merge request!94Update DragDropM.cs
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using TMPro; using TMPro;
//! @authors cgroxy
//! @brief "Insérer description rapide"
//! @details "Insérer description détaillée"
public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler
{ {
// Champs publiques
[SerializeField] private Canvas canvas; [SerializeField] private Canvas canvas;
private RectTransform rectransform; // Champs privés
public TMP_Text textshowed; private RectTransform rectransform; //!< "Insérer description de la variable"
bool block = true; public TMP_Text textshowed; //!< "Insérer description de la variable"
bool block = true; //!< "Insérer description de la variable"
//! @brief Se lance au lancement du script.
private void Awake() private void Awake()
{ {
rectransform = GetComponent<RectTransform>(); rectransform = GetComponent<RectTransform>();
} }
//! @param enventData Donnée de l'event @b OnDrop(PointerEventData)
//! @brief "Insérer description rapide"
//! @details "Insérer description détaillée"
public void OnDrag(PointerEventData eventData) public void OnDrag(PointerEventData eventData)
{ {
...@@ -38,6 +43,9 @@ public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler ...@@ -38,6 +43,9 @@ public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler
} }
//! @param enventData Donnée de l'event @b OnDrop(PointerEventData)
//! @brief "Insérer description rapide"
//! @details "Insérer description détaillée"
public void OnDrop(PointerEventData eventData) public void OnDrop(PointerEventData eventData)
{ {
...@@ -50,7 +58,5 @@ public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler ...@@ -50,7 +58,5 @@ public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler
block = false; block = false;
} }
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment