// Update is called once per frame void Update() { if (modifierText == null) { modifierText = GetComponent <AttachedText>(); // modifierText = attachedText.GetText(); UpdateText(); } }
// Use this for initialization void Start() { sushiText = GetComponent <AttachedText>(); sushiText.SetTextString(_sushiNumber.ToString()); if (game == null) { game = (GameManager)FindObjectOfType <GameManager>(); } }