mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-26 08:34:43 -04:00
Decoupled accessory button works!
- Moved clothing scripts to their own directory
This commit is contained in:
parent
721e2ab858
commit
f29257dcc2
9 changed files with 20 additions and 10 deletions
7
scripts/clothing/accessoryBase.gd
Normal file
7
scripts/clothing/accessoryBase.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends "res://scripts/clothing/baseClothing.gd"
|
||||
|
||||
onready var character = preload("res://resources/character.tres")
|
||||
onready var clothing = $clothing
|
||||
|
||||
func _on_accessory_pressed():
|
||||
character.accessory = clothing.texture_normal
|
Loading…
Add table
Add a link
Reference in a new issue