7-29-25 @ 2:57am
This commit is contained in:
@@ -11,14 +11,14 @@ public partial class Cue : Sprite2D
|
||||
Vector2 _direction;
|
||||
public ProgressBar _progressBar;
|
||||
|
||||
public static Cue _Create()
|
||||
{
|
||||
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/cue.tscn");
|
||||
Cue newCue = scene.Instantiate<Cue>();
|
||||
Texture2D image = GD.Load<Texture2D>("res://art/cue.png");
|
||||
newCue.Texture = image;
|
||||
return newCue;
|
||||
}
|
||||
// public static Cue _Create()
|
||||
// {
|
||||
// PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/cue.tscn");
|
||||
// Cue newCue = scene.Instantiate<Cue>();
|
||||
// Texture2D image = GD.Load<Texture2D>("res://art/cue.png");
|
||||
// newCue.Texture = image;
|
||||
// return newCue;
|
||||
// }
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user