private void OnHitSuccess() { GameObject textInstance; this.sm.AddLaunchAmt(currentNote.GetSuccess() / 100.0f); this.currentNote.SetHittable(false); this.currentNote.GetHit(); this.hit2.Play(); textInstance = Instantiate(textBox, textPos, Quaternion.identity); textInstance.GetComponent <TextKill>().setType(1); }