Esempio n. 1
0
    IEnumerator DismantleProtectionPlate_C()
    {
        yield return(new WaitForSeconds(0.5f));

        Rigidbody ppvrb = protectionPlateVisuals.gameObject.AddComponent <Rigidbody>();

        //protectionPlateVisuals.GetComponent<MeshCollider>().isTrigger = false;
        ppvrb.mass = 50;
        ppvrb.transform.SetParent(null);
        ppvrb.AddExplosionForce(1000, transform.position, 10);
        boss.ActivateWeakPoint();
        yield return(new WaitForSeconds(3f));

        protectionPlateVisuals.gameObject.SetActive(false);
    }