Ejemplo n.º 1
0
    void Awake()
    {
        if (!initialized)
        {
            if (GameSettings.gameSettings == null)
            {
                GameSettings.loadSettings();
            }

            Object[] weapons = Resources.LoadAll("Weapons", typeof(Weapon));
            foreach (Weapon weapon in weapons)
            {
                weapon.initalizeWeapon();
            }

            SoundsManager.Initialize();
            PlayerUI.Initialize();

            initialized = true;
        }
    }