public void buildRealPlatoon() { realPlatoon = GameObject.Instantiate(Resources.Load <GameObject>("Platoon")); //yield return null; platoonBehaviour = realPlatoon.GetComponent <PlatoonBehaviour>(); platoonBehaviour.setMembers(unitType, team, units.Count); platoonBehaviour.setEnabled(false); platoonBehaviour.setGhostPlatoon(this); realPlatoon.transform.position = transform.position + 100 * Vector3.down; }