Je veux faire du bevy
C'est mieux, honêtement
This commit is contained in:
parent
2ad6cc9bdb
commit
29e5e48aee
18 changed files with 32090 additions and 26395 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue