Example #1
0
    StageParts GenerateStageParts(GameObject prefab, int xNumber, int zNumber)
    {
        var parts = FieldRoot.InstantiateTo <StageParts>(gameObject, prefab);

        parts.Initialize(xNumber, zNumber);
        return(parts);
    }
Example #2
0
 public void Select(int index, GameObject parent)
 {
     RunCharacter = FieldRoot.InstantiateTo <RunCharacter>(parent, prefabs[index]);
 }