public void SetValue(int value) { this.value = value; IDText IdText = transform.GetComponentInChildren <IDText>(); IdText.SetID(value); }
// Use this for initialization void Awake() { manager = Manager.instance; chips = new List <GameObject>(); leftClaw = transform.Find("LeftClaw").gameObject; rightClaw = transform.Find("RightClaw").gameObject; // Set ID text on BotIDText botIdText = transform.GetComponentInChildren <IDText>(); botIdText.SetID(botId); }
public void SetID(int id) { this.botId = id; botIdText.SetID(botId); }