static void Main(string[] args) { LoggerFactory.Initialize(); _logger = LoggerFactory.GetLogger(typeof(Program)); if (args.Length != 1) { ShowUsage(); return; } int port; if (int.TryParse(args[0], out port)) { _logger.InfoFormat("Listening port '{0}'.", port); var source = new CancellationTokenSource(); SecurityListener service = new SecurityListener(); service.StartListen(); Quit(); } else { ShowUsage(); } }
// Start is called before the first frame update void Start() { SecurityListener.SetOnHackDetectListener(OnHackDetected); SecurityListener.SetOnErrorListener(OnError); Gold = new Int32(8801); Cash = new Int32(); Cash.Value = 8801; Cash.Value = Cash.Value + Gold.Value; _isClear = new Boolean(false); Debug.Log(Gold.Value); Debug.Log(Cash); Debug.Log(_isClear); }