Skip to content

Commit 677f879

Browse files
committed
2 parents de43c0f + bd59b24 commit 677f879

File tree

156 files changed

+27014
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+27014
-232
lines changed

Assets/GlobalManager.cs

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
namespace Simulation
6+
{
7+
8+
public class GlobalManager : MonoBehaviour
9+
{
10+
public static GlobalManager Instance { get; private set; }
11+
12+
// Références aux autres gestionnaires
13+
public SimulationParameter SimulationParameter { get; private set; }
14+
public UIManager UIManager { get; private set; }
15+
16+
private void Awake()
17+
{
18+
if (Instance != null && Instance != this)
19+
{
20+
Destroy(this.gameObject);
21+
}
22+
else
23+
{
24+
Instance = this;
25+
}
26+
27+
// Assumer que SimulationManager et UIManager sont attachés au même GameObject
28+
SimulationParameter = GetComponent<SimulationParameter>();
29+
UIManager = GetComponent<UIManager>();
30+
}
31+
32+
private void Start()
33+
{
34+
// Configurez les éléments UI au démarrage du jeu
35+
//UIManager.Init();
36+
SimulationParameter.Init();
37+
}
38+
39+
// Autres méthodes liées à la gestion du jeu
40+
}
41+
}

Assets/GlobalManager.cs.meta

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

Assets/Material/0d32123a56_50034121_galaxie-andromede-03.jpg.meta

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Material/Circle.png

5.94 KB
Loading

0 commit comments

Comments
 (0)