// Start is called before the first frame update void Start() { wide = new WideWaveNote(0.0f, Vector3.zero, wideNote); vertical = new VerticalWaveNote(0.0f, Vector3.zero, verticalNoteR); punch = new PunchNote(0.0f, Vector3.zero, punchNote); laser = new LaserNote(0.0f, Vector3.zero, laserNote); throwCube = new ThrowCubeNote(0.0f, Vector3.zero, throwNote); }
// Start is called before the first frame update void Start() { wide = new WideWaveNote(wideAnimTime, Vector3.zero, wideNote); vertical = new VerticalWaveNote(verticalAnimTime, Vector3.zero, verticalNoteR); punch = new PunchNote(0.0f, Vector3.zero, punchNote); laser = new LaserNote(0.0f, Vector3.zero, laserNote, laserTrace); throwCube = new ThrowCubeNote(throwAnimTime, Vector3.zero, throwNote); musicObj = GameObject.Find("GameManager"); music = musicObj.GetComponent <AudioSource>(); lastMusicTime = -1.0f; float x = -1.0f; for (int i = 0; i < 6; i++) { notePos[i] = new Vector3(x, JumpStart.groundPosition.y, 22); x += 0.4f; } }