Ejemplo n.º 1
0
 public void generateRequest()
 {
     activeRequest     = Instantiate(requestMenuPrefab, new Vector3(735f, 350f, -20f), Quaternion.identity);
     activeRequest.man = this;
     activeRequest.transform.SetParent(canvasUI.transform);
     activeRequest.transform.SetAsFirstSibling();
     activeRequest.gameObject.SetActive(false);
     requestNotification.enabled = true;
 }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        closeButton.onClick.AddListener(() => { close(); });
        ControlFactors.setPlayerCast(false);
        if (man != null)
        {
            man.setStatMenuOpen(true);
            if (man.activeRequest)
            {
                man.activeRequest.gameObject.SetActive(true);
                manRequest             = man.activeRequest;
                manRequest.currentMenu = this;
            }
        }

        _Label.SetText(man.title);
        _Love.SetText("Love: " + ((man.brain.Love / man.brain.maxEmotion) * 100f).ToString("F0") + "%");
        _Fear.SetText("Fear: " + ((man.brain.Fear / man.brain.maxEmotion) * 100f).ToString("F0") + "%");
        _State.SetText("State: " + man.state);
    }
Ejemplo n.º 3
0
 public void Request(RequestMenu Request)
 {
     SoundManager.instance.PlaySE(soundMenu[Request]);
 }
Ejemplo n.º 4
0
 public JsonResult GetAllMenubyRoleId(RequestMenu requestMenu)
 {
     return(Json(_menuMasterQueries.GetListofMenu(requestMenu.RoleId, requestMenu.MenuCategoryId)));
 }
Ejemplo n.º 5
0
 public ObjectResultEx EditMenu(RequestMenu Param)
 {
     return(ObjectResultEx.Instance(SystemService.EditMenu(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success));
 }
Ejemplo n.º 6
0
 public JsonResult GetAllMenubyRoleId(RequestMenu requestMenu)
 {
     return(Json(_menu.GetListofMenu(requestMenu.RoleId, requestMenu.MenuCategoryId), JsonRequestBehavior.AllowGet));
 }