refonte de l'inventaire en 3D et nettoyage des prints
This commit is contained in:
@@ -8,7 +8,6 @@ func _ready():
|
||||
|
||||
func generate_plants():
|
||||
for i in n_plants_to_generate:
|
||||
print("Generate plant")
|
||||
var plant_position := Vector2(i * space_between_plants, 0)
|
||||
var plant_data: PlantData = PlantData.new(plant_position)
|
||||
plant_data.day = plant_data.get_growing_time()
|
||||
|
||||
@@ -20,7 +20,6 @@ class_name PlantPartScene
|
||||
|
||||
func load_resource():
|
||||
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
|
||||
print("Loading: ", part_name, " at: ", destination)
|
||||
var plant_part = ResourceLoader.load(destination)
|
||||
if plant_part is PlantPart:
|
||||
root.position = plant_part.root
|
||||
@@ -66,7 +65,6 @@ func load_resource():
|
||||
|
||||
func save_as_resource():
|
||||
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
|
||||
print("Saving: ", part_name, " at: ", destination)
|
||||
var attaches_vec2: Array[Vector2]
|
||||
for attach in attaches.get_children():
|
||||
attaches_vec2.append(attach.position)
|
||||
|
||||
Reference in New Issue
Block a user