Esempio n. 1
0
    private void Reproduce()
    {
        float reproductionDamage = _health * 0.5f;

        if (_health >= _healthNeededToReproduce)
        {
            _health = reproductionDamage;
            _grid.InstantiateWolf(_reproductionLocation);
        }
        else
        {
            _health -= _actionDecay;
        }
    }