(c6ca0ef58) Recreate objectives when the bot is dismissed.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:11:49 +03:00
parent de8a23f687
commit dbccd76613
13 changed files with 158 additions and 33 deletions
@@ -484,6 +484,19 @@ namespace Barotrauma.Items.Components
return true;
}
public override void OnItemLoaded()
{
sonar = item.GetComponent<Sonar>();
}
public override bool Select(Character character)
{
if (!CanBeSelected) return false;
user = character;
return true;
}
public override void Update(float deltaTime, Camera cam)
{
networkUpdateTimer -= deltaTime;