Skip to content

Commit

Permalink
barracks finals
Browse files Browse the repository at this point in the history
  • Loading branch information
LEM-II\Ilja committed Jan 22, 2017
1 parent 24c0e65 commit e55e216
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions GGJ17/Assets/Script/Blocks/Building/Building_Barracks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,9 @@ public IEnumerator Sonar()
{
if (!isAlerted)
{
StartCoroutine(Engaging());
IsAlerted = true;
StartCoroutine(Engaging());
}
clearTicks = 0;
}
else if(++clearTicks == ticksToLeaveAlert)
{
IsAlerted = false;
}
yield return new WaitForSeconds(sonarPulseIntervall);
}
Expand All @@ -121,5 +116,6 @@ public IEnumerator Engaging()
ousiaRay.enabled = false;
}
}
IsAlerted = false;
}
}

0 comments on commit e55e216

Please sign in to comment.