void Start() { GameObject mainCam = GameObject.Find("MainCamera"); ResetScript cam = mainCam.GetComponent <ResetScript>(); cam1 = cam.resetCamera1; cam2 = cam.resetCamera2; }
public void OnException(Exception e) { if (e.Message.Contains("2000")) { myGO = GameObject.FindGameObjectWithTag("resetPassTag"); ResetScript rs = myGO.GetComponent <ResetScript>(); rs.userCheckText.text = "Username Doesn't Exist"; } Debug.Log("Exception : " + e); }
public void OnSuccess(object response) { myGO = GameObject.FindGameObjectWithTag("resetPassTag"); ResetScript rs = myGO.GetComponent <ResetScript>(); rs.userCheckText.text = "Password reset information has been sent to -" + rs.userNameText.text + "-'s email address"; App42Response app42response = (App42Response)response; Debug.Log("app42Response is : " + app42response); }
public void ExecuteCreation(ResetScript script, bool softReset) { var all = Path.Combine(_logPath, softReset ? "Create_Soft.sql" : "Create_All.sql"); var sb = new StringBuilder(); foreach (var file in script.Files) { sb.AppendLine($@"-------------------------------------------------- -- {file.BasePath} --------------------------------------------------"); sb.AppendLine(file.FileText); sb.AppendLine("GO"); sb.AppendLine(); } File.AppendAllText(all, sb.ToString()); ExecuteAndLog($"Create_{script.ExecutionOrder:d2}_{script.CategoryName}.sql", sb.ToString()); }
public void ExecuteCreation(ResetScript script, bool softReset) { throw new NotImplementedException(); }
// Use this for initialization void Start() { particles = GetComponent <ParticleSystem>(); reset = ScriptCache.GetComponent <ResetScript>(); }
private void Awake() { ins = this; }