示例#1
0
        public override void Execute(GameData data)
        {
            NotesInstance newMenu = Instantiate(notesPrefab);

            newMenu.name = data.currentPiece.name;
            newMenu.GetComponent <NotesInstance>().pieceDetails = data.currentPiece;
        }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     myNotes = GetComponent <NotesInstance>();
 }