protected override void _Launch() { var builder = new Regulus.Protocol.AssemblyBuilder(); var dataAsm = Assembly.LoadFile(System.IO.Path.GetFullPath("ItIsNotAGame1Data.dll")); var asm = builder.Build(dataAsm, "Regulus.Project.ItIsNotAGame1.Protocol"); var protocl = asm.CreateInstance("Regulus.Project.ItIsNotAGame1.Protocol") as IProtocol; var client = new Regulus.Framework.Client <IUser>(this.Viewer, this.Command); throw new NotImplementedException(); client.Selector.AddFactoty("online", new RemotingUserFactory(protocl, null)); _Updater.Add(client); }
// Use this for initialization void Start() { Mode = SceneChanger.Mode; Application.logMessageReceived += _Log; #if !UNITY_STANDALONE_WIN Regulus.Utility.SpinWait.NotWindowsPlatform(); #endif var client = new Regulus.Framework.Client<Regulus.Project.ItIsNotAGame1.IUser>(Console, Console.Command ); client.ModeSelectorEvent += _ToMode; _Client = client; _Updater.Add(_Client); Debug.Log("Started ."); }