Je veux faire du bevy

C'est mieux, honêtement
This commit is contained in:
Crizomb 2025-01-28 13:20:13 +01:00
parent 2ad6cc9bdb
commit 29e5e48aee
18 changed files with 32090 additions and 26395 deletions

View file

@ -52,13 +52,10 @@ public class HealthHandler : MonoBehaviour
return;
}
GlobalsVariable.AliveUnitsTeamB = new List<AbstractUnit>();
GlobalsVariable.AliveUnitsTeamA = new List<AbstractUnit>();
if (deathState == DeathSate.QueenBDead)
{
print("get good, reload current scene");
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
GameManager.Instance.ReloadLevel();
}
if (deathState == DeathSate.QueenADead)

View file

@ -31,6 +31,14 @@ public class MinecraftUnit : AbstractUnit
if (IsQueen)
{
transform.Find("Crown").gameObject.SetActive(true);
if (IsTeamA)
{
GlobalsVariable.QueenA = this;
}
else
{
GlobalsVariable.QueenB = this;
}
}
}