Beispiel #1
0
    private void RepairShellCore(ShellCore shellCore)
    {
        if (shellCore.isYardRepairing)
        {
            return;
        }

        if (shellCore.HasPartsDamagedOrDestroyed())
        {
            StartCoroutine(shellCore.StartYardRepair());
        }
        else if (shellCore.HasShellOrCoreDamaged())
        {
            shellCore.HealToMax();
        }
    }