Tuesday, 05 August 2025 01:43:58
This commit is contained in:
@@ -4,8 +4,7 @@ using System;
|
||||
public partial class Main : Node
|
||||
{
|
||||
public Battle _currentBattle;
|
||||
public PlayerManager _player;
|
||||
public ComputerManager _computer;
|
||||
public Manager _player;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
@@ -13,14 +12,10 @@ public partial class Main : Node
|
||||
Globals.Instance._screenCenter = new Vector2(Globals.Instance._screenSize.X / 2, Globals.Instance._screenSize.Y / 2);
|
||||
|
||||
_currentBattle = GetNode<Battle>("Battle");
|
||||
_player = GetNode<PlayerManager>("Player");
|
||||
_computer = GetNode<ComputerManager>("Computer");
|
||||
_player._opponent = _computer;
|
||||
_computer._opponent = _player;
|
||||
_player = GetNode<Manager>("Player");
|
||||
|
||||
_currentBattle.Start(_player, _computer);
|
||||
_player.Start();
|
||||
_computer.Start();
|
||||
_currentBattle.Start();
|
||||
_player.Start(_currentBattle.GetNode<Table>("Table"));
|
||||
}
|
||||
|
||||
public override void _Process(double DELTA_)
|
||||
|
||||
Reference in New Issue
Block a user