//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, November 08, 2017 //-------------------------------------------------------- using UnityEngine; using System.Collections; using UnityEngine.UI; namespace vnxbqy.UI { public class TeamMatchBehaviour : MonoBehaviour { static string[] matching_Patterns = new string[] { ".", "..", "..." }; [SerializeField] Text m_Matching; int preSecond = 0; private void LateUpdate() { var second = (int)Time.time; if (second != preSecond) { m_Matching.text = matching_Patterns[second % 3]; } } } }