public void AddEditRequest()
    {
        rewardTypeModal.SetActive(false);
        if (EventSystem.current.currentSelectedGameObject.name.Equals("Edit"))
        {
            GameObject obj = EventSystem.current.currentSelectedGameObject.transform.parent.gameObject;
            controller.KeyToEdit = obj.name;
            Debug.Log(CLASSNAME + " **** Edit requested - set entry to edit as " + controller.KeyToEdit);

            if (controller.CheckIsWebsiteReward(obj.name))
            {
                controller.SceneChange(ADD_WEBSITE_SCENE, true, true);
            }
            else
            {
                controller.SceneChange(EDIT_ADD_SCENE, true, false);
            }
        }
        else
        {
            controller.KeyToEdit = "";
            Debug.Log(CLASSNAME + " **** Add Requested - KeyToEdit set to empty string");
            controller.SceneChange(EDIT_ADD_SCENE, false, false);
        }
    }
Beispiel #2
0
 public void ReturnToPreviousScene()
 {
     controller.ClearData();
     controller.SceneChange(PREVIOUS_SCENE);
 }