public void Setup(EnemyManager enemyManager) { enemyUI.gameObject.SetActive(true); enemy = enemyManager; enemyUI.SetupUI(enemy); playerUI.SetupUI(player); enemy.AddEventListenerOnTap(PlayerAttack); }
public void Setup(EnemyManager enemyManager) { SoundManager.instance.PlayBGM("Battle"); enemyUI.gameObject.SetActive(true); enemy = enemyManager; enemyUI.SetupUI(enemy); playerUI.SetupUI(player); enemy.AddEventListenerOnTap(PlayerAttack); }
//初期設定 public void Setup(EnemyManager enemyManager) { SoundManager.instance.PlayBGM("Battle"); enemyUI.gameObject.SetActive(true); enemy = enemyManager; enemyUI.SetupUI(enemy); playerUI.SetupUI(player); enemy.AddEventListenerOnTap(PlayerAttack); // enemy.transform.DOMove(new Vector3(0,10,0), 5f); }