(566a98ad3) Fixed docking button usage not being synced

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:36:55 +03:00
parent 037ef71ce9
commit d21ccf5ecd
11 changed files with 273 additions and 240 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;