// Start is called before the first frame update void Start() { // Grab the world from the builder _world = GameObject.FindObjectOfType <WorldBuilder>().World; // Hack for debugging if (_world == null) { Debug.Log("Creating local World now..."); _world = new LocalWorld(); _world.Start(); _world.CreateLocalPlayer("Test Player"); } }
public void NewPlayer(string name) { World.CreateLocalPlayer(name); }