/* AM Button */ public void ButtonCallBack(Button buttonPressed) { if (!gPS.InPlace()) { return; } if (buttonPressed == likeBtn) { if (periodSelection.getIsAMSelected()) { LikeAM(); } else if (periodSelection.getIsPMSelected()) { LikePM(); } } }
/*Check if AM or PM is selected, AM <12 and PM is after 12*/ void ActiveBtnToggle() { if (periodSelection.getIsAMSelected() && System.DateTime.Now.Hour < 12) { Debug.Log("AM"); clientAPIs.Book("AM"); //Calender.amCounter += 1; } else if (periodSelection.getIsPMSelected() && System.DateTime.Now.Hour >= 12) { Debug.Log("PM"); clientAPIs.Book("PM"); //Calender.pmCounter += 1; } }