Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     shooting = this.gameObject.GetComponent <Shooting>();
 }