mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 13:07:10 +01:00
added base team class
This commit is contained in:
22
Assets/Scripts/GameManager/Team.cs
Normal file
22
Assets/Scripts/GameManager/Team.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Team
|
||||
{
|
||||
private string name;
|
||||
private int score;
|
||||
|
||||
public Team(string _name, int _score)
|
||||
{
|
||||
name = _name;
|
||||
score = _score;
|
||||
|
||||
Debug.Log(name + " Team Created!");
|
||||
}
|
||||
|
||||
public string GetTeamName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user