コード例 #1
0
    public void addEvent(MusicEvent e)
    {
//		Debug.Log (Instantiate(Resources.Load("Pokeball1")));
        GameObject ball = generateBall(e);

        musicEvents.Add(e, ball);
        if (e.isHeldEvent())
        {
            activeHolds[e] = false;

            NoteTrail trail = (Instantiate(Resources.Load("Trail")) as GameObject).GetComponent <NoteTrail>();
            noteTrails [e] = trail;
            trail.setX(xForEvent(e));
//			Debug.Log (trail);

//			GameObject newBall = prefabForEvent(e);
        }
    }