public virtual void OnShutdown(ShutdownContext context) { if (context == ShutdownContext.Deactivate) { CmdOverlay.RemoveCommands(this); } }
protected override void InitPlugin() { base.InitPlugin(); cmdOverlay = new CmdOverlay(); netManager = new NetworkManager(); }
public virtual void OnInit(InitContext context) { if (context == InitContext.Activate) { CmdOverlay.AddCommands(this); } }
public NetworkManager() { // locate all moving objects in scene CmdOverlay.AddCommands(this); }