Esempio n. 1
0
    void Start()
    {
        GameObject  mainCam = GameObject.Find("MainCamera");
        ResetScript cam     = mainCam.GetComponent <ResetScript>();

        cam1 = cam.resetCamera1;
        cam2 = cam.resetCamera2;
    }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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());
        }
Esempio n. 5
0
 public void ExecuteCreation(ResetScript script, bool softReset)
 {
     throw new NotImplementedException();
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     particles = GetComponent <ParticleSystem>();
     reset     = ScriptCache.GetComponent <ResetScript>();
 }
Esempio n. 7
0
 private void Awake()
 {
     ins = this;
 }