Skip to content
Snippets Groups Projects
Commit b33de2e7 authored by Raffael Di Pietro's avatar Raffael Di Pietro
Browse files

GenerateMap en singleton

parent 4f33295a
No related merge requests found
...@@ -27,7 +27,17 @@ public class GenerateMap : MonoBehaviour ...@@ -27,7 +27,17 @@ public class GenerateMap : MonoBehaviour
//Les coordonées y dans l'ordre //Les coordonées y dans l'ordre
private int[] ys=new int[]{26,13,0}; //ligne private int[] ys=new int[]{26,13,0}; //ligne
// Start is called before the first frame update
public static GenerateMap instance;
private void Awake()
{
if (instance != null)
return;
instance = this;
}
void Start() void Start()
{ {
generateVillage(); generateVillage();
......
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