29 lines
560 B
C#
29 lines
560 B
C#
using Godot;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class Player : Node
|
|
{
|
|
public bool _available, _selected;
|
|
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_)
|
|
{
|
|
|
|
}
|
|
|
|
}
|