예제 #1
0
파일: Game.cs 프로젝트: gouki04/Tower
    public bool UseKey(Tower.EKey key_type)
    {
        var cnt = Keys[key_type];

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

        Keys[key_type] = cnt - 1;
        return(true);
    }
예제 #2
0
파일: Game.cs 프로젝트: gouki04/Tower
 public void AddKey(Tower.EKey key_type)
 {
     Keys[key_type]++;
 }