public ProtocolPlugin(string pluginFolder, string ipMachine) { ipMachine_ = ipMachine; // store this here, but IP will be caught in handshake packets anyway manager_ = new G2Manager(this); manager_.NewResult += new SearchResultHandler(manager__NewResult); // all classes uses G2Log, which write to file or console // AND also to the application log due to this event G2Log.MessageLog += new ApplicationMessageLog(ApplicationLog); pluginFolder_ = pluginFolder; }
// Use this for initialization void Start() { G2M = GameObject.Find("G2Manager").GetComponent <G2Manager>(); }