33 lines
566 B
C#
33 lines
566 B
C#
using Godot;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class Player : Node
|
|
{
|
|
public bool _available, _selected;
|
|
public Actor _teamLead;
|
|
|
|
public static Player _Create()
|
|
{
|
|
PackedScene scene = ResourceLoader.Load<PackedScene>("res://Gameplay/player.tscn");
|
|
Player newPlayer = scene.Instantiate<Player>();
|
|
|
|
Actor newActor = Actor._Create();
|
|
newPlayer._teamLead = newActor;
|
|
newPlayer.AddChild(newActor);
|
|
|
|
return newPlayer;
|
|
}
|
|
|
|
public override void _Process(double DELTA_)
|
|
{
|
|
|
|
}
|
|
|
|
public void Start()
|
|
{
|
|
_teamLead.Start();
|
|
}
|
|
|
|
}
|