19 lines
423 B
C#
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;
|
|
}
|
|
|
|
|
|
}
|