rabidus-test/Assets/Scripts/PlayerInfo.cs

29 lines
522 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class Player
{
public string Name;
public int Score;
private float _score;
public List<MonumentInfo> UnlockedMonumets = new List<MonumentInfo>();
}
[CreateAssetMenu(fileName = "PlayerInfo")]
public class PlayerInfo : ScriptableObject
{
public List<Player> Players = new List<Player>();
public void AddNewPlayer(Player player)
{
Players.Add(player);
}
}