You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
534 B
29 lines
534 B
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class UICircuitCount : MonoBehaviour {
|
|
|
|
public CircuitType type;
|
|
public Text countText;
|
|
|
|
public int Count {
|
|
get => count;
|
|
set {
|
|
count = value;
|
|
countText.text = count.ToString();
|
|
}
|
|
}
|
|
private int count = 10;
|
|
|
|
public void RemoveOne() {
|
|
SelectionGUI.Instance.RemoveCircuitFromSelection(this);
|
|
}
|
|
|
|
public void SetPlayerMaterial(Material material) {
|
|
countText.material = material;
|
|
}
|
|
|
|
}
|
|
|