(fbfb76aeb) Implement automatic extinguishing. TODO: should use the AIObjectiveLoop class.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:13:21 +03:00
parent ab2ca90d08
commit 7fb7c13198
14 changed files with 156 additions and 68 deletions
@@ -549,6 +549,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;