28 lines
761 B
C#
28 lines
761 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class MicChooseController : MonoBehaviour
|
|
{
|
|
public int thisIndexMic;
|
|
public void SetInfo(int thisMic)
|
|
{
|
|
thisIndexMic = thisMic;
|
|
|
|
transform.Find("TxtMic").GetComponent<Text>().text = thisIndexMic.ToString();
|
|
}
|
|
|
|
public void ChooseThis()
|
|
{
|
|
GetComponent<Image>().sprite = GeneralScript.instance.micChosenOne;
|
|
transform.Find("TxtMic").GetComponent<Text>().color = new Color(.26f, .26f, .26f, 1);
|
|
}
|
|
|
|
public void UnChoose()
|
|
{
|
|
GetComponent<Image>().sprite = GeneralScript.instance.micNotChosenOne;
|
|
transform.Find("TxtMic").GetComponent<Text>().color = Color.white;
|
|
}
|
|
}
|