示例#1
0
    public void Close()
    {
        upper.SetTile(upper.WorldToCell(transform.position), baseTiles.GetMainTile());
        isOpen = false;

        terminalController.SetCurrentPc(null);
        actionWindow.CloseActionWindow("awpc");

        terminalController.isOpen = false;
        //light2D.enabled = false;
    }
示例#2
0
文件: CommandDB.cs 项目: 41ross/sza
        public List <string> GetActionStatus(string[] param)
        {
            ActionWindowController actionWindow       = Global.Component.GetActionWindowController();
            TerminalController     terminalController = Global.Component.GetTerminalController();

            terminalController.GetCurrentPc().Close();
            actionWindow.CloseActionWindow("awpc");

            return(new List <string>()
            {
                "exit status 0"
            });
        }
示例#3
0
    public void OnClose()
    {
        if (input.text.Length == 0)
        {
            goOnTable.GetComponent <ItemCell>().item         = item;
            goOnTable.GetComponent <SpriteRenderer>().sprite = item.itemSprite;
        }
        else
        {
            goOnTable.GetComponent <ItemCell>().item         = resultItem;
            goOnTable.GetComponent <SpriteRenderer>().sprite = resultItem.itemSprite;
        }

        goOnTable.GetComponent <ItemCell>().item.itemOptionData.text = input.text;

        actionWindow.CloseActionWindow(this.gameObject.tag);
        isOpen = false;
    }
示例#4
0
    public void OnClose()
    {
        if (!IsFormFill())
        {
            goOnTable.GetComponent <ItemCell>().item         = item;
            goOnTable.GetComponent <SpriteRenderer>().sprite = item.itemSprite;
        }
        else
        {
            goOnTable.GetComponent <ItemCell>().item         = resultItem;
            goOnTable.GetComponent <SpriteRenderer>().sprite = resultItem.itemSprite;
        }

        goOnTable.GetComponent <ItemCell>().item.itemOptionData.text = ParseToString();

        actionWindow.CloseActionWindow(this.gameObject.tag);
        //isOpen = false;

        CleanFields();
    }
示例#5
0
 public void OnClose()
 {
     actionWindow.CloseActionWindow(this.gameObject.tag);
 }
示例#6
0
 public void OnClose()
 {
     Destroy(instawItem);
     actionWindow.CloseActionWindow(this.gameObject.tag);
 }