Пример #1
0
        // Start is called before the first frame update
        private void Start()
        {
            _shooting = FindObjectOfType <Shooting>();

            Inventory = new Dictionary <int, int>();

            for (int i = 0; i < GameManager.Instance.Elements.GetLength(0); i++)
            {
                Inventory.Add(GameManager.Instance.Elements[i].ElementId, InitialMunitionCount);
            }

            PowerUps = new List <object>();

            //_uiManager.UpdateInventory(this);
        }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     shooting = this.gameObject.GetComponent <Shooting>();
 }