예제 #1
0
 public static bool IsAxe(this ItemState item)
 {
     return(item == ItemStates.DiamondAxe() ||
            item == ItemStates.GoldenAxe() ||
            item == ItemStates.IronAxe() ||
            item == ItemStates.StoneAxe() ||
            item == ItemStates.WoodenAxe());
 }
예제 #2
0
 public static bool IsPickaxe(this ItemState item)
 {
     return(item == ItemStates.DiamondPickaxe() ||
            item == ItemStates.GoldenPickaxe() ||
            item == ItemStates.IronPickaxe() ||
            item == ItemStates.StonePickaxe() ||
            item == ItemStates.WoodenPickaxe());
 }