Files
hotdesking/Gameplay/SupportBall.cs
2025-07-21 03:17:09 -04:00

19 lines
423 B
C#

using Godot;
using System;
using System.Data;
public partial class SupportBall : Ball
{
public static SupportBall _Create(int NUMBER)
{
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/support_ball.tscn");
SupportBall newBall = scene.Instantiate<SupportBall>();
newBall.GetNode<Sprite2D>("Image").Texture = GD.Load<Texture2D>("res://art/ball_" + NUMBER + ".png");
return newBall;
}
}