From 17d7f56a8e519324dd7694722d239289077ae73f Mon Sep 17 00:00:00 2001 From: MrWarzo <jordan.pereira@etu.unistra.fr> Date: Fri, 17 Dec 2021 02:08:34 +0000 Subject: [PATCH] Update DragDropM.cs --- .../Scripts/Obstacle/Medium/DragDropM.cs | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/T3-Unity/Assets/Scripts/Obstacle/Medium/DragDropM.cs b/T3-Unity/Assets/Scripts/Obstacle/Medium/DragDropM.cs index 71091fa..15c334f 100644 --- a/T3-Unity/Assets/Scripts/Obstacle/Medium/DragDropM.cs +++ b/T3-Unity/Assets/Scripts/Obstacle/Medium/DragDropM.cs @@ -1,27 +1,32 @@ -using System.Collections; +using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using TMPro; - + //! @authors cgroxy + //! @brief "Insérer description rapide" + //! @details "Insérer description détaillée" public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler { - + // Champs publiques [SerializeField] private Canvas canvas; - private RectTransform rectransform; - public TMP_Text textshowed; - bool block = true; - + // Champs privés + private RectTransform rectransform; //!< "Insérer description de la variable" + 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() { 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) { @@ -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) { @@ -50,7 +58,5 @@ public class DragDropM : MonoBehaviour, IDragHandler, IDropHandler block = false; } - - } } -- GitLab