void OnBeat(int num) { switch (num) { default: break; case 5: case 15: case 25: case 35: case 83: case 99: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_0); break; case 10: case 20: case 30: case 40: case 91: case 107: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_1); break; case 45: case 55: case 65: case 75: case 88: case 104: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_2); break; case 50: case 60: case 70: case 80: case 96: case 112: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_3); break; case 117: LM.SpawnCoinCircle(8, 850); LM.SpawnCoinCircle(8, 1000, PI / 8); LM.SpawnCoinCircle(8, 1150); break; case 125: phase = 1; break; case 188: phase = 0; //InstantiateAttack(FalseAttack.AttackType.CIRCLE_IN_0); break; case 190: case 200: case 210: case 239: case 268: case 291: InstantiateAttack(FalseAttack.AttackType.CIRCLE_IN_0); break; case 195: case 205: case 215: case 227: case 277: case 301: InstantiateAttack(FalseAttack.AttackType.CIRCLE_IN_1); break; case 222: case 273: case 296: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_2); break; case 234: case 282: case 306: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_3); break; case 244: case 252: case 260: case 286: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_0); break; case 248: case 256: case 264: case 300: InstantiateAttack(FalseAttack.AttackType.CIRCLE_OUT_1); break; case 308: LM.SpawnCoinCircle(8, 850); LM.SpawnCoinCircle(8, 1000, PI / 8); LM.SpawnCoinCircle(8, 1150); break; case 316: phase = 1; break; case 318: Music.Instance.GetComponent <AudioSource>().time -= 192 * LM.GetBeatTime(); beatNum -= 192; break; } }