Skip to content
Snippets Groups Projects
Commit 4dbe7ab0 authored by MARQUE ELISE's avatar MARQUE ELISE
Browse files

Panel Shop

parent 3f7641aa
1 merge request!77Main
......@@ -61,9 +61,6 @@ Participants :
Lien des consigne : [https://git.unistra.fr/T234/T3](https://git.unistra.fr/T234/T3)
<p align="right">(<a href="#readme-top">back to top</a>)</p>
<!-- OBJECTIF PEDAGOGIQUE -->
<a name="objectif-pedagogique"></a>
......
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class OpenShop : MonoBehaviour
{
public Canvas canvas;
public openCanvas openCanvasShop;
private void OnMouseDown()
{
if (EventSystem.current.IsPointerOverGameObject()) //if the mouse is on a UI element
{
return;
}
openCanvasShop.inverseAffichage();
}
}
fileFormatVersion: 2
guid: f0d6be0f42a8893498cdcd5163a36829
guid: 61a7f1d1e342b264d9757b11994fb4e1
MonoImporter:
externalObjects: {}
serializedVersion: 2
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace game
{
public class ShopEvents : MonoBehaviour
{
public InventoryPanel shop;
void OnMouseUp()
{
//shop.OpenPanel();
}
}
}
\ No newline at end of file
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