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()); }