Exemplo n.º 1
0
    IEnumerator Phase10()
    {
        print("PHASE 10");
        float SV = 185.45f;

        MusicController.control.SkipToPoint(SV);

        Spawner_Main.Custom_SingleExpandEffect(185.45f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(186.25f - SV, new Vector2(1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(187.13f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(188.00f - SV, new Vector2(1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(188.81f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(189.67f - SV, new Vector2(1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(190.52f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(191.30f - SV, new Vector2(1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(192.15f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(192.99f - SV, new Vector2(1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(193.86f - SV, new Vector2(-1, 1), 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect(194.68f - SV, new Vector2(1, 1), 50, 50, 3);

        Spawner_Main.Custom_SingleExpandEffect_Random(195.89f - SV, 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect_Random(196.76f - SV, 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect_Random(198.23f - SV, 50, 50, 3);
        Spawner_Main.Custom_SingleExpandEffect_Random(198.23f - SV, 50, 50, 3);

        Spawner1.Shoot_CircleBurst(185.45f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(186.25f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(187.13f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(188.00f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(188.81f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(189.67f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(190.52f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(191.30f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(192.15f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(192.99f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(193.86f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(194.68f - SV, null, new Vector3(1, 1), 15, 2, 3);


        Spawner1.CreateShape_Circle(195.89f - SV, null, new Vector2(0, 2f), 0, 30, 0.4f, 0.4f, 1, true);
        Spawner1.CreateShape_Circle(196.76f - SV, null, new Vector2(0, -2f), 0, 30, 0.4f, 0.4f, 1, true);
        Spawner2.CreateShape_Circle(198.13f - SV, null, new Vector2(-2, 0), 0, 30, 1.5f, 1.5f, 1, true);
        Spawner2.CreateShape_Circle(198.23f - SV, null, new Vector2(2, 0), 0, 30, 1.5f, 1.5f, 1, true);

        Spawner1.RotateDegrees(198.9f - SV, null, 0, -30);
        Spawner2.RotateDegrees(198.9f - SV, null, 0, 30);

        Spawner3.Shoot_InDirection(198.9f - SV, null, new Vector2(-5, -3), new Vector2(4, 1), 0.2f, 110, 2, 30, 1.9f);          // was 0.085f, but not uses degrees
        Spawner3.Shoot_InDirection(198.9f - SV, null, new Vector2(5, -3), new Vector2(-4, 1), 0.2f, 110, 2, 30, 1.9f);          // was 0.085f, but not uses degrees

        Spawner4.Shoot_AtTarget(204.74f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(204.74f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(204.74f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(204.74f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);

        Spawner4.Shoot_AtTarget(211.69f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(211.69f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(211.69f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(211.69f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);

        Spawner4.Shoot_AtTarget(218.17f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(218.17f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(218.17f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);
        Spawner4.Shoot_AtTarget(218.17f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 2, 0, 4);

        Spawner4.Shoot_AtTarget(225.11f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner4.Shoot_AtTarget(225.11f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner4.Shoot_AtTarget(225.11f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner4.Shoot_AtTarget(225.11f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);


        Spawner1.Stop_ForeverRotate(224.04f - SV);
        Spawner2.Stop_ForeverRotate(224.04f - SV);


        Spawner1.BreakToTarget_Children(224.07f - SV, PlayersGameObject(), new Vector2(0, 0), 0, 1);
        Spawner2.BreakToTarget_Children(224.07f - SV, PlayersGameObject(), new Vector2(0, 0), 0, 1);

        Spawner1.StopVelocity_Children(224.17f - SV);
        Spawner2.StopVelocity_Children(224.17f - SV);

        Spawner1.BreakToTarget_Children(224.46f - SV, PlayersGameObject(), new Vector2(0, 0), 0, 1);
        Spawner2.BreakToTarget_Children(224.46f - SV, PlayersGameObject(), new Vector2(0, 0), 0, 1);

        Spawner1.StopVelocity_Children(224.57f - SV);
        Spawner2.StopVelocity_Children(224.57f - SV);

        Spawner1.BreakToTarget_Children(224.85f - SV, PlayersGameObject(), new Vector2(0, 0), 0, -4);
        Spawner2.BreakToTarget_Children(224.85f - SV, PlayersGameObject(), new Vector2(0, 0), 0, -4);

        Spawner1.Destroy_Children(226.86f - SV, 0);
        Spawner2.Destroy_Children(226.86f - SV, 0);


        Spawner1.Shoot_CircleBurst(226.12f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(226.95f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(228.42f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(228.42f - SV, null, new Vector3(1, 1), 15, 2, 3);

        Spawner_Main.MoveObjectToPoint(228.22f - SV, Pikachu_Left, new Vector2(-3, -1.5f), 0.5f);
        Spawner_Main.MoveObjectToPoint(228.22f - SV, Pikachu_Right, new Vector2(3, -1.5f), 0.5f);

        Spawner_Main.MoveObjectToPoint(229.42f - SV, Pikachu_Left, Pikachu_Left_Starting, 1f);
        Spawner_Main.MoveObjectToPoint(229.42f - SV, Pikachu_Right, Pikachu_Right_Starting, 1f);

        yield return(new WaitForSeconds(230.00f - SV));

        yield return(null);
    }
Exemplo n.º 2
0
    IEnumerator Phase4()
    {
        print("PHASE 4");
        float SV = 57.88f;

        MusicController.control.SkipToPoint(SV);

        Spawner3.RotateAroundPoint(57.88f - SV, null, null, new Vector2(0, 0), 3.5f, 2.5f, 0.75f, 270, true);
        Spawner3.RotateDegrees(57.88f - SV, null, 0, 30);
        Spawner4.RotateAroundPoint(57.88f - SV, null, null, new Vector2(0, 0), 3.5f, 2.5f, 0.75f, 90, true);
        Spawner4.RotateDegrees(57.88f - SV, null, 0, 30);


        Spawner3.Shoot_AtTarget(63.78f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(63.78f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(63.78f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(63.78f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);

        Spawner3.Shoot_AtTarget(70.67f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(70.67f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(70.67f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(70.67f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);

        Spawner3.Shoot_AtTarget(77.19f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(77.19f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(77.19f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);
        Spawner3.Shoot_AtTarget(77.19f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 4, 0, 4);

        Spawner3.Shoot_AtTarget(84.14f - SV, null, new Vector2(-4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner3.Shoot_AtTarget(84.14f - SV, null, new Vector2(-4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner3.Shoot_AtTarget(84.14f - SV, null, new Vector2(4, 3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);
        Spawner3.Shoot_AtTarget(84.14f - SV, null, new Vector2(4, -3), PlayersGameObject(), new Vector2(0, 0), 0, 1, 6, 0, 4);


        Spawner3.Stop_RotateAround(82.95f - SV);
        Spawner4.Stop_RotateAround(82.95f - SV);
        Spawner3.Stop_ForeverRotate(82.92f - SV);
        Spawner4.Stop_ForeverRotate(82.92f - SV);

        Spawner3.BreakRandomly_Children(82.95f - SV, 0, 1);
        Spawner4.BreakRandomly_Children(82.95f - SV, 0, 1);

        Spawner3.ChangeAlpha_Children(82.95f - SV, 0.0f, 0, 1);
        Spawner4.ChangeAlpha_Children(82.95f - SV, 0.0f, 0, 1);

        Spawner3.Destroy_Children(83.95f - SV, 0);
        Spawner4.Destroy_Children(83.95f - SV, 0);


        Spawner1.Shoot_CircleBurst(85.13f - SV, null, new Vector3(-1, 1), 15, 2, 3);
        Spawner2.Shoot_CircleBurst(86.00f - SV, null, new Vector3(1, 1), 15, 2, 3);
        Spawner1.Shoot_CircleBurst(87.42f - SV, null, new Vector3(0, 0), 15, 1.5f, 3);
        Spawner2.Shoot_CircleBurst(87.42f - SV, null, new Vector3(0, 0), 15, 2, 3);


        yield return(new WaitForSeconds(88.1f - SV));

        ResetObjectSpawner(Spawner3);
        ResetObjectSpawner(Spawner4);
        yield return(null);
    }