Example #1
0
    public void MakeOrg(int _givenNumberOfOrg)
    {
        if (_givenNumberOfOrg == 0)
        {
            throw new Exception();
        }



        for (int i = 0; i < _givenNumberOfOrg; i++)
        {
            Organization o = new Organization();

            int randInitPersonNumber = UnityEngine.Random.Range(1, 5);

            for (int j = 0; j < randInitPersonNumber; j++)
            {
                Person p = PersonManager.Inst.GetRandomPerson();

                o.AddPerson(p);
            }

            organizationList.Add(o);
        }
    }