Beispiel #1
0
        void refreshEnemy()
        {
            RoleData enemy = BattleLogic.Instance.CurrentEnemyRole;

            enemyBody.sprite = Statics.GetHalfBodySprite(enemy.HalfBodyId);
            enemyBody.SetNativeSize();
            refreshEnemyBlood();
            enemyNameText.text = enemy.Name;
            if (enemy.GetCurrentBook() != null)
            {
                enemyBookIconImage.transform.parent.gameObject.SetActive(true);
                enemyBookIconImage.sprite = Statics.GetIconSprite(enemy.GetCurrentBook().IconId);
                enemyBookIconImage.SetNativeSize();
            }
            else
            {
                enemyBookIconImage.transform.parent.gameObject.SetActive(false);
            }
        }