Skip to content

Commit

Permalink
Merge branch 'hotfix/Fix_editor_works_but_builds_fail'
Browse files Browse the repository at this point in the history
  • Loading branch information
guneyozsan committed Oct 24, 2017
2 parents 999be78 + 0a0e590 commit f54f278
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Assets/Scripts/Sequencer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public enum Part { Intro, Part1Probe, Part2Approach };
#endif



void Start()
{
#if UNITY_EDITOR
Expand All @@ -69,22 +70,29 @@ void Start()
#endif

CurrentBar = 1;
#if UNITY_EDITOR
CurrentBeat = 1;
#endif
}



void Update()
{
#if UNITY_EDITOR
if (doFastForward)
{
FastForward();
}

SetCurrentRegion();
SetBeats();
#endif
SetCurrentRegion();
LoopMusicTo(loopToBar);
}



#if UNITY_EDITOR
void InitializeFastForward()
{
Expand All @@ -100,8 +108,11 @@ void InitializeFastForward()
doFastForward = false;
}
}
#endif



#if UNITY_EDITOR
void FastForward()
{
throw new NotImplementedException();
Expand Down

0 comments on commit f54f278

Please sign in to comment.