예제 #1
0
    private void Reproduce()
    {
        if (sex == BiologicalSex.Female)
        {
            for (int i = 0; i < Random.Range(1, 4); i++)
            {
                AnimalFactory.CreateBabyMonkey(dna, mate.GetComponent <Monkey>().dna, transform);
            }
        }

        mate             = null;
        mateOnSight      = false;
        reproductionUrge = 0;
        state            = State.Nourished;
    }