Exemplo n.º 1
0
    public void FinishGeneratingCompany()
    {
        Company c = new Company(founder);

        founder.ActiveCompany = c;
        c.name = companyName.text;
        c.logo = logoGenerator.Logo;
        Funds.TransferFunds(founder, c, personalFundsAdded.FieldValue);
        c.Funds += investorFundsAdded.FieldValue;
        GameDataManager.instance.AddNewCompany(c);
        gameObject.SetActive(false);
    }