예제 #1
0
    public void Setup(EnemyManager enemyManager)
    {
        enemyUI.gameObject.SetActive(true);
        enemy = enemyManager;
        enemyUI.SetupUI(enemy);
        playerUI.SetupUI(player);

        enemy.AddEventListenerOnTap(PlayerAttack);
    }
예제 #2
0
 public void Setup(EnemyManager enemyManager)
 {
     SoundManager.instance.PlayBGM("Battle");
     enemyUI.gameObject.SetActive(true);
     enemy = enemyManager;
     enemyUI.SetupUI(enemy);
     playerUI.SetupUI(player);
     enemy.AddEventListenerOnTap(PlayerAttack);
 }
예제 #3
0
    //初期設定
    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);
    }