38 lines
787 B
C#
38 lines
787 B
C#
using Godot;
|
|
using Godot.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class Player : Node3D
|
|
{
|
|
[Export]
|
|
public SpawnPoint SpawnPoint;
|
|
|
|
[Export]
|
|
public Array<PackedScene> PlayableCharacterScenes;
|
|
|
|
[Export]
|
|
public PlayerInput PlayerInput;
|
|
|
|
[Export]
|
|
public int PlayerNumber;
|
|
|
|
public List<PackedScene> CharactersLeftOnStage = new List<PackedScene>();
|
|
public List<PackedScene> CharactersExited = new List<PackedScene>();
|
|
|
|
public Character SelectedCharacter;
|
|
|
|
public bool IsSelectingCharacter = false;
|
|
|
|
public int CharacterIndex = 0;
|
|
|
|
public bool GameOver = false;
|
|
|
|
public override void _Ready()
|
|
{
|
|
foreach (var character in PlayableCharacterScenes)
|
|
{
|
|
CharactersLeftOnStage.Add(character);
|
|
}
|
|
}
|
|
}
|