예제 #1
0
        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;
        }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     G2M = GameObject.Find("G2Manager").GetComponent <G2Manager>();
 }