7-31-25 @ 3:05AM
This commit is contained in:
@@ -4,19 +4,19 @@ using System;
|
||||
public partial class Main : Node
|
||||
{
|
||||
public Battle _currentBattle;
|
||||
public Manager _player;
|
||||
public Manager _computer;
|
||||
public PlayerManager _player;
|
||||
public ComputerManager _computer;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
Globals.Instance._screenSize = GetViewport().GetVisibleRect().Size;
|
||||
Globals.Instance._screenCenter = new Vector2(Globals.Instance._screenSize.X / 2, Globals.Instance._screenSize.Y / 2);
|
||||
// Battle newBattle = Battle._Create();
|
||||
|
||||
_currentBattle = GetNode<Battle>("Battle");
|
||||
_player = GetNode<Manager>("Player");
|
||||
_computer = GetNode<Manager>("Computer");
|
||||
// AddChild(newBattle);
|
||||
_currentBattle.Start();
|
||||
_player = GetNode<PlayerManager>("Player");
|
||||
_computer = GetNode<ComputerManager>("Computer");
|
||||
|
||||
_currentBattle.Start(_player, _computer);
|
||||
_player.Start();
|
||||
_computer.Start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user