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