mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-05 21:34:49 -04:00
Couldn't think of a better title. Anyway, the current system is repeitive and redundent. While it works, it's not by means ideal. Because you have to manually write in a new condiation for every new clothing added. What makes it redundant is the fact that every clothing functions exactly the same. The only difference is in the layers it uses.
7 lines
215 B
GDScript
7 lines
215 B
GDScript
extends "res://scripts/baseClothing.gd"
|
|
|
|
onready var character = preload("res://resources/character.tres")
|
|
onready var clothing = $clothing
|
|
|
|
func _on_undies_pressed():
|
|
character.underwear = clothing.texture_normal
|