using Godot; using System; public partial class Seedpacket : TextureButton { private const string PATH_TO_PACKED_SCENE = "res://scenes/gui/seedpacket.tscn"; private PlantResource _resource; private Label _cost; private TextureRect _icon; private Timer _timer; private SeedpacketHandler _handler; public bool disablePacket = false; public static PackedScene Prefab { get; private set; } // Node overrides public override void _Ready() { if (_resource != null) UpdateContents(); if (Prefab == null) { Prefab = ResourceLoader.Load(PATH_TO_PACKED_SCENE); } _cost = GetNode