Esempio n. 1
0
    IEnumerator Phase6()
    {
        print("PHASE 6");
        float SV = 94.78f;

        MusicController.control.SkipToPoint(SV);


        Spawner1.CreateLine_MultiLines(94.78f - SV, null, new Vector3(0, 0), 0.8f, 5, 4, 4, 0, 0, true);
        Spawner1.MorphTo_Square_Children(98.39f - SV, null, new Vector3(-2, 0), 0, 0, 1.85f, 1.85f, 3.1f);

        Spawner2.CreateLine_MultiLines(101.53f - SV, null, new Vector3(0, 0), 0.8f, 5, 4, 4, 0, 0, true);
        Spawner2.MorphTo_Square_Children(105.05f - SV, null, new Vector3(2, 0), 0, 0, 1.85f, 1.85f, 3.1f);

        Spawner1.RotateDegrees(108.22f - SV, null, 180, 4.95f);
        Spawner2.RotateDegrees(108.22f - SV, null, 180, 4.95f);

        Spawner1.BreakToTarget_Children(113.25f - SV, PlayersGameObject(), new Vector3(0, 0), 0.00f, 2);
        Spawner2.BreakToTarget_Children(113.25f - SV, PlayersGameObject(), new Vector3(0, 0), 0.00f, 2);

        Spawner1.BreakToTarget_Children(113.75f - SV, PlayersGameObject(), new Vector3(0, 0), 0.00f, -4);
        Spawner2.BreakToTarget_Children(113.75f - SV, PlayersGameObject(), new Vector3(0, 0), 0.00f, -4);

        Spawner1.ChangeAlpha_Children(113.75f - SV, 0.0f, 0, 2);
        Spawner2.ChangeAlpha_Children(113.75f - SV, 0.0f, 0, 2);

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


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

        ResetObjectSpawner(Spawner1);
        ResetObjectSpawner(Spawner2);


        yield return(null);
    }