public void OnEnable() { setting = target as GoogleDataSettings; // resolve TlsException error UnsafeSecurityPolicy.Instate(); }
protected override void OnEnable() { base.OnEnable(); // resolve TlsException error UnsafeSecurityPolicy.Instate(); machine = target as GoogleMachine; if (machine != null) { machine.ReInitialize(); // Specify paths with one on the GoogleDataSettings.asset file. if (GoogleDataSettings.Instance != null) { if (string.IsNullOrEmpty(GoogleDataSettings.Instance.RuntimePath) == false) { machine.RuntimeClassPath = GoogleDataSettings.Instance.RuntimePath; } if (string.IsNullOrEmpty(GoogleDataSettings.Instance.EditorPath) == false) { machine.EditorClassPath = GoogleDataSettings.Instance.EditorPath; } } } }
///// <summary> ///// Select currently exist account setting asset file. ///// </summary> //[MenuItem("Edit/Project Settings/QuickSheet/Select Google Data Setting")] //public static void Edit() //{ // Selection.activeObject = GameCore.GoogleSettings; // if (Selection.activeObject == null) // { // Debug.LogError("No GoogleDataSettings.asset file is found. Create setting file first."); // } //} protected override void OnEnable() { base.OnEnable(); // resolve TlsException error UnsafeSecurityPolicy.Instate(); machine = target as GoogleMachine; if (machine != null) { machine.ReInitialize(); } }
public void OnEnable() { // resolve TlsException error UnsafeSecurityPolicy.Instate(); }
public void OnEnable() { setting = target as GoogleDataSettings; UnsafeSecurityPolicy.Instate(); }