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

        if (game == null)
        {
            game = (GameManager)FindObjectOfType <GameManager>();
        }
    }