mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-08 04:37:13 +08:00
Add import configuration for Chomp.wav audio effect
This commit is contained in:
@@ -3,15 +3,18 @@ class_name ItemStore
|
||||
|
||||
enum ItemType {
|
||||
BASEBALL,
|
||||
BASKETBALL
|
||||
BASKETBALL,
|
||||
APPLE
|
||||
}
|
||||
static var nameMap = {
|
||||
ItemType.BASEBALL: "棒球",
|
||||
ItemType.BASKETBALL: "篮球"
|
||||
ItemType.BASKETBALL: "篮球",
|
||||
ItemType.APPLE: "苹果"
|
||||
}
|
||||
static var idMap = {
|
||||
ItemType.BASEBALL: "baseball",
|
||||
ItemType.BASKETBALL: "basketball"
|
||||
ItemType.BASKETBALL: "basketball",
|
||||
ItemType.APPLE: "apple"
|
||||
}
|
||||
static func getTexture(type: ItemType) -> Texture2D:
|
||||
return load("res://resources/items/%s.svg" % idMap[type])
|
||||
return load("res://resources/items/%s.svg" % idMap[type])
|
||||
|
||||
Reference in New Issue
Block a user