Friday, 15 August 2025 23:08:08
This commit is contained in:
@@ -6,16 +6,9 @@ using System.Linq;
|
||||
public partial class Battle : Node
|
||||
{
|
||||
public bool _current;
|
||||
public Vector2 _startPosition = new Vector2(890, 340);
|
||||
public List<Sprite2D> _potted = new();
|
||||
public List<Ball> _balls = new();
|
||||
public Table _table;
|
||||
public List<Pocket> _pockets = new();
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_table = GetNode<Table>("Table");
|
||||
_pockets = _table.GetNode<Node2D>("Pockets").GetChildren().Select(n => (Pocket)n).ToList();
|
||||
|
||||
}
|
||||
|
||||
@@ -27,7 +20,6 @@ public partial class Battle : Node
|
||||
public void Start()
|
||||
{
|
||||
_current = true;
|
||||
Globals.Instance._currentBattle = this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user