Exemplo n.º 1
0
    public void generatePaperProposal(ItemElementInfo element, ItemRitualInfo ritual)
    {
        PaperProposalInfo paperInfo = new PaperProposalInfo();

        paperInfo.element = element.id;
        paperInfo.ritual  = ritual.id;
    }
Exemplo n.º 2
0
    void generateProposal(bool doit)
    {
        //create paper proposal
        PaperProposalInfo info = new PaperProposalInfo();

        info.element = element;
        info.ritual  = ritual;
        if (doit)
        {
            info.state = paperProposalState.selected;
        }
        else
        {
            info.state = paperProposalState.cancelled;
        }
        Inventory.Instance.addPaperProposal(info);
        GetComponent <UIView>().Hide();
    }
Exemplo n.º 3
0
 public void addPaperProposal(PaperProposalInfo info)
 {
     paperProposals[info.id] = info;
 }