Skip to content

Commit

Permalink
Fix minor bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eusth committed Sep 19, 2016
1 parent ba12753 commit ecf4bf2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion HoneySelectVR/HoneyStandingMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ protected override void OnLevel(int level)
base.OnLevel(level);
VRLog.Info("Level {0}", level);

if (GameObject.FindObjectOfType<CustomScene>())
if (GameObject.FindObjectOfType<ADVScene>())
{
StartCoroutine(PositionForADV());
}
if(level == 2)
{
// Title screen
StartCoroutine(PositionForTitle());
}
}
public override IEnumerable<Type> Tools
{
Expand All @@ -53,5 +58,15 @@ private IEnumerator PositionForADV()
//VR.Camera.SteamCam.origin.position = new Vector3(0, 1.4f, 1f);
//VR.Camera.SteamCam.origin.rotation = Quaternion.LookRotation(-Vector3.forward);
}

private IEnumerator PositionForTitle()
{
yield return new WaitForEndOfFrame();

MoveToPosition(Vector3.forward *3, Quaternion.LookRotation(-Vector3.forward));

}


}
}

0 comments on commit ecf4bf2

Please sign in to comment.