// Use this for initialization void Start() { buttonCG = GetComponent <ButtonCG>(); menuLibrary = LibraryManager.instance.get <MenuLibrary>(); menuLibrary.onFull += () => buttonCG.setEnabled(true); menuLibrary.onNotFull += () => buttonCG.setEnabled(false); menuLibrary.checkFull(); buttonCG.clicked += startDay; }