public void Awake() { coreModule = GetComponent <Ignorance>(); if (!coreModule) { // Can't continue without our core module. Debug.LogError("Ignorance Port Forwarder Module requires a Ignorance Transport script on the gameObject as the one you have this script on. I can't find it."); enabled = false; return; } coreModule.OnIgnoranceServerStartup += OnIgnoranceServerStart; coreModule.OnIgnoranceServerShutdown += OnIgnoranceServerShutdown; }
public void Awake() { Debug.LogWarning("This module is obsolete and will be removed in a later version of Ignorance. Read the source comments for more information."); coreModule = GetComponent <Ignorance>(); if (!coreModule) { // Can't continue without our core module. Debug.LogError("Ignorance LAN Discovery Module requires a Ignorance Transport script on the gameObject as the one you have this script on. I can't find it."); enabled = false; return; } coreModule.OnIgnoranceServerStartup += OnIgnoranceServerStart; coreModule.OnIgnoranceServerShutdown += OnIgnoranceServerShutdown; coreModule.OnIgnoranceClientStartup += OnIgnoranceClientStart; coreModule.OnIgnoranceClientShutdown += OnIgnoranceClientShutdown; Debug.LogWarning("This LAN Discovery module is beta-quality. Use with caution. If you encounter problems, please file a bug report!"); }