1234567891011121314151617181920 |
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class BattleInfo : MonoBehaviour {
- public Animator animator;
- public Text infoTxt;
- public Text comboTxt;
- public void Show(string info, string combo="", bool isAlly=true)
- {
- infoTxt.text = info;
- comboTxt.text = combo;
- if(isAlly)
- animator.Play("BattleInfoBlue", 0, 0);
- else
- animator.Play("BattleInfoRed", 0, 0);
- }
- }
|