Exemple #1
0
    protected virtual float GiveBirthAction()
    {
        IsPregnant           = false;
        LastReproductionTime = SecondsAlive;

        Entity child = Instantiate(this, transform.parent);

        PreviousCell.TrySetContent(child);
        child.Initialize(CurrentWorld, PreviousCell, ChildNormalMoveSeconds, ChildFastMoveDivisor);
        CurrentWorld.NewEntity(child);

        return(GiveBirthCost);
    }