예제 #1
0
    void ExploEnd()
    {
        activate.ExploActivation(transform.position, 01, gameObject.name); //피탄 이펙트 켜짐.

        soundUiControlScript.UfoExplo();                                   //폭파음재생.
        isBalckHallActive = false;
        gameObject.SetActive(false);
    }
예제 #2
0
    IEnumerator ExploEnd()
    {
        soundUiControlScript.UfoExplo();                                                           //폭파음재생.

        activate.ExploActivation(transform.position + new Vector3(0, 0, -5), 01, gameObject.name); //피탄 이펙트 켜짐.
        yield return(new WaitForSeconds(0.2f));

        activate.ExploActivation(transform.position, 01, gameObject.name); //피탄 이펙트 켜짐.
        yield return(new WaitForSeconds(0.2f));

        activate.ExploActivation(transform.position + new Vector3(0, 0, 5), 01, gameObject.name); //피탄 이펙트 켜짐.

        transform.parent.parent.gameObject.SetActive(false);
    }
예제 #3
0
    private void ExploEnd()
    {
        if (transform.name == "EnemyLaserBeam")
        {
            activate.ExploActivation(transform.root.FindChild("LaserCannonRot/LaserCannon01").position, 01, gameObject.name); //피탄 이펙트 켜짐.
        }
        else
        {
            activate.ExploActivation(transform.position, 01, gameObject.name); //피탄 이펙트 켜짐.
        }
        soundUiControlScript.UfoExplo();                                       //폭파음재생.

        isBalckHallActive = false;

        if (transform.name == "EnemyLaserBeam")
        {
            transform.root.gameObject.SetActive(false);
        }
        else
        {
            gameObject.SetActive(false);
        }
    }
예제 #4
0
    void ExploEnd()
    {
        isUfoLife = false;
        if (ufoType != 3)
        {
            activate.ExploActivation(transform.position + addPosition, 01, gameObject.name);               //피탄 이펙트 켜짐.
        }
        else
        {
            activate.ExploActivation(transform.GetChild(0).position + addPosition, 01, gameObject.name);  //피탄 이펙트 켜짐.
        }
        if (ufoType != 4)
        {
            soundUiControlScript.UfoExplo();               //폭파음재생.
        }
        else
        {
            soundUiControlScript.UfoLargeExplo();  //쉴드폭파음재생.
        }
        ValueDeliverScript.enemyInGame.Remove(this.gameObject);

        gameObject.SetActive(false);
    }