Fixed a few exceptions

Tahir-branch
Hazim Bin Ijaz 2 months ago
parent 052d8c5520
commit 93dbdd5699

@ -13,14 +13,14 @@ public class MemberInitializer : Unit
[SerializeField] private NeutralsSpawn neutralsSpawn; [SerializeField] private NeutralsSpawn neutralsSpawn;
private void Awake() private void Awake()
{ {
squadComponent = Get<SquadComponent>();
squadMember = GetInitialSquadMember();
neutralsSpawn.neutralMember = GetInitialNeutralMember();
AddMember();
} }
private void Start() private void Start()
{ {
squadComponent = Get<SquadComponent>();
squadMember = GetInitialSquadMember();
neutralsSpawn.neutralMember = GetInitialNeutralMember();
AddMember();
} }
private SquadMember GetInitialSquadMember() private SquadMember GetInitialSquadMember()

Loading…
Cancel
Save