This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.

14 lines
287 B
GDScript

extends Sprite
export var faction = 1 setget set_faction, get_faction
func _ready():
set_faction(faction)
func set_faction(new_faction):
faction = new_faction
texture = load("res://art/entities/player/dev/dev_player_" + str(faction) + ".png")
func get_faction():
return faction