示例#1
0
    IEnumerator C_StartRoomActions(float StartDelay)
    {
        Manipluation.RotateDegrees(3, 0.1f, 90, false);

        for (float I = 3; I < 13; I = I + 1f)
        {
            Manipluation.PlayClip(I, SpinEffect1);
            Manipluation.PlayClip(I, SpinEffect2);
            Manipluation.PlayClip(I, SpinEffect3);
        }

        yield return(StartCoroutine(C_RandomMedusaSpam(14)));

        Manipluation.RotateDegrees(3, 0.1f, 90, false);
        for (float I = 3; I < 13; I = I + 1f)
        {
            Manipluation.PlayClip(I, SpinEffect1);
            Manipluation.PlayClip(I, SpinEffect2);
            Manipluation.PlayClip(I, SpinEffect3);
        }

        O_EndPathSpawner.CreateLineInDirection(14, 0.7f, 9, new Vector2(1, 0), 5);
        for (float I = 14; I < 14 + 9 * 0.7f; I = I + 0.7f)
        {
            Manipluation.PlayClip(I, BlockAppearing);
        }
    }
示例#2
0
    void OnEnable()             // Create all of the objects
    {
//		Instantiate (BossMusic_Controller);
//		MusicController.control.Fade_Play_Unfade (BossMusic);
        MusicController.control.PlayNewClip(BossMusic);

        NewObjectSpawner TEMP;

        CenterHead.SetColor(0, Color.white);
        BackgroundSpin.SetActive(true);
        CenterHead.UnfadeObject(0, BackgroundSpin, 1f);

        TEMP = BackgroundSpin.GetComponent <NewObjectSpawner> ();
        TEMP.RotateDegrees(0, 0.1f, 0, false);

        TEMP = LeftEar.GetComponent <NewObjectSpawner> ();
        TEMP.CreateTriangle(0, 0.1f, 9, 0.25f, 0.25f);
        CenterHead.TESTCOMBINE(3, TEMP);

        TEMP = RightEar.GetComponent <NewObjectSpawner> ();
        TEMP.CreateTriangle(0, 0.1f, 9, 0.25f, 0.25f);
        CenterHead.TESTCOMBINE(3, TEMP);

        LeftEye = LeftEyeObject.GetComponent <NewObjectSpawner> ();
        LeftEye.CreateLineInDirection(0, 0, 1, new Vector2(0, 0), 0);
        LeftEye.RotateDegrees(0, 0, 315, true);
//		LeftEye.RotateTwordsObject_Player (0, 5, false);

        RightEye = RightEyeObject.GetComponent <NewObjectSpawner> ();
        RightEye.CreateLineInDirection(0, 0, 1, new Vector2(0, 0), 0);
        RightEye.RotateDegrees(0, 0, 315, true);
//		RightEye.RotateTwordsObject_Player (0, 5, false);

        TEMP = Mouth.GetComponent <NewObjectSpawner> ();
        TEMP.CreateCircle(0, 0.1f, 7, 0.5f, 0.5f, 2);
        TEMP.CreateCircle(0, 0.1f, 5, 0.05f, 0.05f, 1);
        TEMP.CreateLineInDirection_World(0, 0.1f, 2, new Vector2(0, -1), 0.5f);

        CenterHead.TESTCOMBINE(3, TEMP);
        LeftArm.SetColor(0, Color.white);
        RightArm.SetColor(0, Color.white);

        CenterHead.CreateCircle(0, 0.05f, 30, 1, 1, 1);
        LeftArm.CreateSquare(0, 0.1f, 16, 0.5f, 0.4f);
        RightArm.CreateSquare(0, 0.1f, 16, 0.5f, 0.4f);
        LeftArm.SetColor_Random(3);
        RightArm.SetColor_Random(3);

        StartCoroutine(C_StartBattle());
    }