31 lines
751 B
C#
31 lines
751 B
C#
namespace Barotrauma
|
|
{
|
|
partial class GoToMission : Mission
|
|
{
|
|
public GoToMission(MissionPrefab prefab, Location[] locations, Submarine sub)
|
|
: base(prefab, locations, sub)
|
|
{
|
|
}
|
|
|
|
protected override void UpdateMissionSpecific(float deltaTime)
|
|
{
|
|
if (Level.Loaded?.Type == LevelData.LevelType.Outpost)
|
|
{
|
|
State = 1;
|
|
}
|
|
}
|
|
|
|
protected override bool DetermineCompleted()
|
|
{
|
|
if (Level.Loaded?.Type == LevelData.LevelType.Outpost)
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
return Submarine.MainSub is { AtEndExit: true };
|
|
}
|
|
}
|
|
}
|
|
}
|