Пример #1
0
    public void CheckMap(Craftable c, float amo)
    {
        return;

        if (c == mineUnlockable)
        {
            Game.Instance.logSystem.Log("Discovered Mine");
            mapUI.UnlockArea(World.AreaType.MINE, Game.Instance.playerData.GetCraftableAmount(c) > 0);
            if (onMapDiscover != null)
            {
                onMapDiscover(World.AreaType.MINE);
            }
        }
        else if (c == beachUnlockable)
        {
            Game.Instance.logSystem.Log("Discovered Beach");
            mapUI.UnlockArea(World.AreaType.BEACH, Game.Instance.playerData.GetCraftableAmount(c) > 0);
            if (onMapDiscover != null)
            {
                onMapDiscover(World.AreaType.BEACH);
            }
        }
        else if (c == desertUnlockable)
        {
            Game.Instance.logSystem.Log("Discovered Desert");
            mapUI.UnlockArea(World.AreaType.DESERT, Game.Instance.playerData.GetCraftableAmount(c) > 0);
            if (onMapDiscover != null)
            {
                onMapDiscover(World.AreaType.DESERT);
            }
        }
        else if (c == oceanUnlockable)
        {
            Game.Instance.logSystem.Log("Discovered Ocean");
            mapUI.UnlockArea(World.AreaType.OCEAN, Game.Instance.playerData.GetCraftableAmount(c) > 0);
            if (onMapDiscover != null)
            {
                onMapDiscover(World.AreaType.OCEAN);
            }
        }
        else if (c == townUnlockable)
        {
            Game.Instance.logSystem.Log("Discovered Town");
            mapUI.UnlockArea(World.AreaType.TOWN, Game.Instance.playerData.GetCraftableAmount(c) > 0);
            if (onMapDiscover != null)
            {
                onMapDiscover(World.AreaType.TOWN);
            }
        }
    }