public override void AfterSpawn() { StatBarUI statBar = spawnedInstance.GetComponent <StatBarUI>(); statBar.statType = statType; statBar.statName = statName; statBar.LoadData(); }