StageParts GenerateStageParts(GameObject prefab, int xNumber, int zNumber) { var parts = FieldRoot.InstantiateTo <StageParts>(gameObject, prefab); parts.Initialize(xNumber, zNumber); return(parts); }
public void Select(int index, GameObject parent) { RunCharacter = FieldRoot.InstantiateTo <RunCharacter>(parent, prefabs[index]); }