Пример #1
0
    // 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>();
    }
Пример #2
0
        ///<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);
        }
Пример #3
0
    // 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));
    }
Пример #4
0
 ///<summary>
 ///Removes the given BUI
 ///</summary>
 public void RemoveBUI(BUI toRemove)
 {
     this.RemoveStructure("BUI", toRemove);
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     ui     = GameObject.FindObjectOfType <BUI>();
     player = FindObjectOfType <BPlayer>();
 }
Пример #6
0
 public void Start()
 {
     ui = FindObjectOfType <BUI>();
 }
Пример #7
0
 // Start is called before the first frame update
 void Start()
 {
     ui = GameObject.FindObjectOfType <BUI>();
 }