public void OnButtonReleased(int result) { if (transform.name == "SaveButton1") { episode_controller.SaveRed(); } if (transform.name == "SaveButton2") { episode_controller.SaveGreen(); } }