Exemplo n.º 1
0
    public bool UseKey(Tower.EKey key_type)
    {
        var cnt = Keys[key_type];

        if (cnt <= 0)
        {
            return(false);
        }

        Keys[key_type] = cnt - 1;
        return(true);
    }
Exemplo n.º 2
0
 public void AddKey(Tower.EKey key_type)
 {
     Keys[key_type]++;
 }