public override void Execute(GameData data) { NotesInstance newMenu = Instantiate(notesPrefab); newMenu.name = data.currentPiece.name; newMenu.GetComponent <NotesInstance>().pieceDetails = data.currentPiece; }
// Start is called before the first frame update void Start() { myNotes = GetComponent <NotesInstance>(); }