예제 #1
0
        void Update()
        {
            if (fighter.GetTargetHealth() == null)
            {
                GetComponent <Text>().text = " ";
                return;
            }
            Health health = fighter.GetTargetHealth();

            GetComponent <Text>().text = string.Format("{0:0}/{1:0}", health.GetHealth(), health.GetMAxHealth());
        }