private void loginButton_Click(object sender, EventArgs e) { DashboardUI dashboard = new DashboardUI(); dashboard.Show(); this.Hide(); }
IEnumerator WaitForFakeLogIn() { FullRegLogUI.enabled = false; FullDashboard.enabled = true; LoginText.text = "getting data please wait ..."; yield return(new WaitForSeconds(2f)); LoginText.text = ""; DashboardUI.DOAnchorPos(new Vector3(0, -149), 0.4f); // ContractManager.ContractManagerInstance.GetDataForContractsAfterLogIn(); // ContractManager.ContractManagerInstance.ReloadDataAfterFakeSignOut(); }
IEnumerator WaitForLogIn() { FullRegLogUI.enabled = false; FullDashboard.enabled = true; LoginText.text = "login in please wait ..."; ContractManager.ContractManagerInstance.ContractData(); ContractManager.ContractManagerInstance.GetFullDataForAllContracts(); for (int i = 0; i < DronesManager.Instance.Drones.Count; i++) { DronesManager.Instance.Drones[i].GetDataForDrone(); } ContractManager.ContractManagerInstance.ActiveContractsDashBoard(); yield return(new WaitForSeconds(4f)); PlantsManager.PlantsManagerInstance.ActiveAndDoneContractsUI(); LoginText.text = ""; TimeManager.Instance.canCount = 1; DashboardUI.DOAnchorPos(new Vector3(0, -149), 0.4f); // ContractManager.ContractManagerInstance.GetDataForContractsAfterLogIn(); }
// Use this for initialization void Start() { CURRENTSTATE = State.PATROL; newJob = false; isFirstPerson = false; safeToPullOver = false; Speed = 10; //RotateSpeed = 1; AudioSource[] sources = this.GetComponents<AudioSource>(); notifySource = sources[0]; notifySource2 = sources[1]; alarmSource = sources[2]; notifySource3 = sources[3]; dUI = DashboardPanel.GetComponent<DashboardUI>(); DashboardUI.LEVEL = SoundLevel.MEDIUM; GetComponentInChildren<Camera>().transform.position = firstPerson.position; GetComponentInChildren<Camera>().transform.rotation = firstPerson.rotation; foreach (GameObject mud in mudSpots) { Debug.Log("mud"); mud.GetComponent<Mud>().SetSeverity(Random.Range(-1.5f, 1.5f)); } }
// Use this for initialization void Start() { CURRENTSTATE = State.PATROL; newJob = false; isFirstPerson = false; safeToPullOver = false; Speed = 10; //RotateSpeed = 1; AudioSource[] sources = this.GetComponents<AudioSource>(); notifySource = sources[0]; notifySource2 = sources[1]; alarmSource = sources[2]; notifySource3 = sources[3]; dUI = DashboardPanel.GetComponent<DashboardUI>(); DashboardUI.LEVEL = SoundLevel.MEDIUM; GetComponentInChildren<Camera>().transform.position = firstPerson.position; GetComponentInChildren<Camera>().transform.rotation = firstPerson.rotation; }
// Use this for initialization void Start() { dUI = DashboardPanel.GetComponent<DashboardUI>(); IsClear = true; IsPlaying = false; }