(d762b9ca6) Refresh visible hulls once per second.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:50:06 +03:00
parent d81457e3ef
commit 4c0adb145d
12 changed files with 479 additions and 58 deletions
@@ -73,6 +73,21 @@ namespace Barotrauma
}
}
public override void Update(float deltaTime)
{
if (objectiveManager.CurrentObjective == this)
{
if (randomTimer > 0)
{
randomTimer -= deltaTime;
}
else
{
SetRandom();
}
}
}
public override bool IsCompleted() => false;
public override bool CanBeCompleted => true;