// Start is called before the first frame update void Start() { startTime = DateTime.Now; gameOverText.gameObject.SetActive(false); gameOverSummary.gameObject.SetActive(false); ui = FindObjectOfType <BUI>(); sound = GetComponent <AudioSource>(); }
///<summary> /// Returns first repetition of BUI (Blood Unit Information) - creates it if necessary ///</summary> public BUI GetBUI() { BUI ret = null; try { ret = (BUI)this.GetStructure("BUI"); } catch (HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred", e); } return(ret); }
// Start is called before the first frame update void Start() { ui = FindObjectOfType <BUI>(); controller = FindObjectOfType <BController>(); if (level >= 2) { controller.Tutorial_1_2(); controller.Tutorial_2_3(); } spawnPoints.ToList().ForEach((sp) => { sp.gameObject.SetActive(false); }); ActivateSpawnPointsOfLevel(Mathf.Max(0, level)); spawners.ToList().ForEach((sp) => { sp.gameObject.SetActive(false); }); ActivateSpawnersOfLevel(Mathf.Max(0, level)); }
///<summary> ///Removes the given BUI ///</summary> public void RemoveBUI(BUI toRemove) { this.RemoveStructure("BUI", toRemove); }
// Start is called before the first frame update void Start() { ui = GameObject.FindObjectOfType <BUI>(); player = FindObjectOfType <BPlayer>(); }
public void Start() { ui = FindObjectOfType <BUI>(); }
// Start is called before the first frame update void Start() { ui = GameObject.FindObjectOfType <BUI>(); }