예제 #1
0
    public void Death()
    {
        Debug.Log("code in OK");
        Debug.Log("EnemyState.Die :" + EnemyState.Die);
        ES = EnemyState.Die;

        anim.SetTrigger("Die");
        Speed = 0;

        GUI_Pivot.gameObject.SetActive(false);
        audio.clip = Death_Sound;
        audio.Play();


        PlayManager PM = GameObject.Find("PlayManager").GetComponent <PlayManager>();

        PM.EnemyDie();
        //PlayManager dwpm = new PlayManager();
        //dwpm.EnemyDie();
        Player.GetComponent <PlayManager>().EnemyDie();
    }