7-17-25 @ 3:55am
This commit is contained in:
@@ -1,23 +1,28 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Player : Node
|
||||
{
|
||||
public bool _available, _selected;
|
||||
public Actor _actor;
|
||||
public Battle _currentBattle;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_actor = Actor.Create("actor");
|
||||
AddChild(_actor);
|
||||
}
|
||||
|
||||
public override void _Process(double DELTA_)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Actor _selectedActor;
|
||||
public List<Actor> _actors = new();
|
||||
|
||||
public static Player _Create()
|
||||
{
|
||||
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/player.tscn");
|
||||
Player newPlayer = scene.Instantiate<Player>();
|
||||
|
||||
Actor newActor = Actor._Create();
|
||||
newPlayer._actors.Add(newActor);
|
||||
newPlayer.AddChild(newActor);
|
||||
|
||||
return newPlayer;
|
||||
}
|
||||
|
||||
public override void _Process(double DELTA_)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user