|
|
@ -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()
|
|
|
|