This commit is contained in:
Rendo 2025-07-12 22:21:41 +05:00
commit 85eb5deede
5 changed files with 38 additions and 7 deletions

View file

@ -0,0 +1,21 @@
using Godot;
using Newlon.Components.GUI.Seedpackets;
using Newlon.Components.Level;
using System;
public partial class CostVeil : ColorRect
{
private Seedpacket packet;
public override void _Ready()
{
packet = GetParent<Seedpacket>();
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
//Visible = RuntimeLevelData.Instance.SunCount < packet.GetResource().Cost;
Visible = packet.disablePacket;
}
}

View file

@ -0,0 +1 @@
uid://chag6sgjsjb2u