7-21-25 @ 3:17 am
This commit is contained in:
@@ -5,8 +5,7 @@ using System.Collections.Generic;
|
||||
public partial class Player : Node
|
||||
{
|
||||
public bool _available, _selected;
|
||||
public Actor _selectedActor;
|
||||
public List<Actor> _actors = new();
|
||||
public Actor _teamLead;
|
||||
|
||||
public static Player _Create()
|
||||
{
|
||||
@@ -14,7 +13,7 @@ public partial class Player : Node
|
||||
Player newPlayer = scene.Instantiate<Player>();
|
||||
|
||||
Actor newActor = Actor._Create();
|
||||
newPlayer._actors.Add(newActor);
|
||||
newPlayer._teamLead = newActor;
|
||||
newPlayer.AddChild(newActor);
|
||||
|
||||
return newPlayer;
|
||||
@@ -24,5 +23,10 @@ public partial class Player : Node
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
_teamLead.Start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user