Update Basic/Invaders/Assets/Scripts/EnemyAgent.cs
Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com>
This commit is contained in:
Родитель
0a81ca4d30
Коммит
585a9a9ff6
|
@ -39,7 +39,7 @@ public class EnemyAgent : NetworkBehaviour
|
|||
m_FirstShootTimeAfterSpawn =
|
||||
Time.time + Random.Range(GraceShootingPeriod - 0.1f, GraceShootingPeriod + 0.75f);
|
||||
|
||||
Assert.IsTrue(InvadersGame.Singleton);
|
||||
Assert.IsNotNull(InvadersGame.Singleton);
|
||||
InvadersGame.Singleton.RegisterSpawnableObject(InvadersObjectType.Enemy, gameObject);
|
||||
InvadersGame.Singleton.isGameOver.OnValueChanged += OnGameOver;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче