Last active
August 26, 2019 14:54
-
-
Save rkandas/bd3e54db3b550d4690028f85616c4480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AssetSpawner | |
{ | |
public void createAGameObjectFromString(String csvString) | |
{ | |
String[] tokens = csvString.Split(",".ToCharArray()); | |
if (tokens.Length >= 4) | |
{ | |
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube); | |
cube.name = tokens[0]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment