ZoeAppClass/Assets/Jogos/Jeopardy/Scripts/JPB_TeamBehaviour.cs

31 lines
672 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class JPB_TeamBehaviour
{
public string teamName;
public Color teamColor;
public int teamScore;
public GameObject assignedPanel;
public Animator anim;
public Text score;
public void SetupTeam(string name, Color color, GameObject go, Animator a, Text sc)
{
teamName = name;
teamColor = color;
teamScore = 0;
assignedPanel = go;
anim = a;
score = sc;
}
public void AddScore(int value = 1)
{
teamScore += value;
score.text = teamScore.ToString();
}
}