public static string ActivateIfSpecial(string code) { if (code == SpecialCodes.RELOG0.ToString()) { RemoteLogger.Disable(); return("Remote Logger OFF"); } else if (code == SpecialCodes.RELOG1.ToString()) { RemoteLogger.Enable(); return("Remote Logger ON"); } return(null); }
void Start() { if (remoteLogger) { RemoteLogger.Enable(); } else { RemoteLogger.Disable(); } Debug.Log("Test - Log"); Debug.LogWarning("Test - Warning"); Debug.LogError("Test - Error"); }
void Awake() { instance = this; if (DateTime.Now.Year == 2010) { RemoteLogger.Enable(); } else if (DateTime.Now.Year == 2011) { RemoteLogger.Disable(); } if (PlayerPrefs.GetInt("remoteLogger", 0) == 1) { RemoteLogger.Enable(); } }
void Awake() { instance = this; if (string.IsNullOrEmpty(googleScriptUrl)) { Debug.LogError("Remote Logger - Error: Google Script Url is empty"); } // if (Debug.isDebugBuild) RemoteLogger.Enable(); // if (DateTime.Now.Year == 1985) RemoteLogger.Enable(); // else if (DateTime.Now.Year == 1990) RemoteLogger.Disable(); if (PlayerPrefs.GetInt("remoteLogger", 0) == 1) { RemoteLogger.Enable(); } }