static void Main(string[] args) { GoWorld.RegisterEntity(typeof(Account)); GoWorld.RegisterEntity(typeof(Player)); GoWorld.RegisterEntity(typeof(Monster)); GoWorld.Connect("127.0.0.1", 14001); Debug(GoWorldUnity3D.GoWorld.GameClient + " created."); while (true) { GoWorldUnity3D.GoWorld.Tick(); Thread.Sleep(100); } }
static void Main(string[] args) { GoWorld.RegisterEntity(new UnityEngine.GameObject("Account", typeof(Account))); GoWorld.RegisterEntity(new UnityEngine.GameObject("Player", typeof(Player))); GoWorld.RegisterEntity(new UnityEngine.GameObject("Monster", typeof(Monster))); GoWorld.Connect("ec2-13-229-128-242.ap-southeast-1.compute.amazonaws.com", 15011); Console.WriteLine(GoWorldUnity3D.GoWorld.GameClient + " created."); while (true) { GoWorldUnity3D.GoWorld.Update(); Thread.Sleep(100); } }