Ejemplo n.º 1
0
    // Both paws go together and create random spray of objects
    IEnumerator C_PawCombine(float StartDelay)
    {
        yield return(new WaitForSeconds(StartDelay));

        if (LeftArm.gameObject.activeInHierarchy)
        {
            LeftArm.SetDeathTimer(0, 5);
            LeftArm.MoveToPosition_X(0, gameObject.transform, 1);
            LeftArm.RandomSprayOutwards(2, 0.1f, 50, 1f);
            LeftArm.MoveObjectToPoint(8, LeftArmStartingPosition, 1);
        }

        if (RightArm.gameObject.activeInHierarchy)
        {
            RightArm.SetDeathTimer(0, 5);
            RightArm.MoveToPosition_X(0, gameObject.transform, 1);
            RightArm.RandomSprayOutwards(2, 0.1f, 50, 1.1f);
            RightArm.MoveObjectToPoint(8, RightArmStartingPosition, 1);
        }

        for (float I = 2; I < 7; I = I + 0.1f)
        {
            CenterHead.PlayClip(I, Bullet1);
        }

        yield return(new WaitForSeconds(10));
    }