mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-25 16:14:43 -04:00
character_base code is now in an external script
This commit is contained in:
parent
c3a79164a4
commit
230af8d840
3 changed files with 108 additions and 131 deletions
|
@ -1,22 +0,0 @@
|
|||
# This project is licensed under the MPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Node2D
|
||||
|
||||
onready var character = preload("res://resources/character.tres")
|
||||
onready var accessory = $Accessory
|
||||
onready var underwear = $Undies
|
||||
onready var bottom = $Bottom
|
||||
onready var top = $Top
|
||||
|
||||
func _process(delta):
|
||||
if character.accessory != null:
|
||||
accessory.texture = character.accessory
|
||||
|
||||
if character.underwear != null:
|
||||
underwear.texture = character.underwear
|
||||
|
||||
if character.bottom != null:
|
||||
bottom.texture = character.bottom
|
||||
|
||||
if character.top != null:
|
||||
top.texture = character.top
|
Loading…
Add table
Add a link
Reference in a new issue