public void FoundObject(ARObjectType objectType, AboutViewState aboutViewState = AboutViewState.Peeking) { switch (objectType) { case ARObjectType.Cross: CrossFound = true; aboutViewController.SetTitleText("(Insert Cross Title Here)"); aboutViewController.SetBodyText("(Replace this text with cross body text.)"); break; case ARObjectType.Diamond: DiamondFound = true; aboutViewController.SetTitleText("(Insert Diamond Title Here)"); aboutViewController.SetBodyText("(Replace this text with diamond body text.)"); break; case ARObjectType.Mountain: MountainFound = true; aboutViewController.SetTitleText("(Insert Mountain Title Here)"); aboutViewController.SetBodyText("(Replace this text with mountain body text.)"); break; case ARObjectType.City: CityFound = true; aboutViewController.SetTitleText("(Insert City Title Here)"); aboutViewController.SetBodyText("(Replace this text with city body text.)"); break; } aboutViewController.SetState(aboutViewState); progressViewController.FoundObject(objectType); }
public void NotTrackingObject(ARObjectType objectType) { if (aboutViewController.state == AboutViewState.Peeking) { aboutViewController.SetState(AboutViewState.Hidden); } else { aboutViewController.hideWhenPossible = true; } }
public void FoundObject(ARObjectType objectType) { switch (objectType) { case ARObjectType.Diamond: badgeImages[2].sprite = badgeSprites[2]; break; case ARObjectType.Mountain: badgeImages[1].sprite = badgeSprites[1]; break; case ARObjectType.Cross: badgeImages[0].sprite = badgeSprites[0]; break; case ARObjectType.City: badgeImages[3].sprite = badgeSprites[3]; break; } }
private void TapBadge(ARObjectType objectType) { FoundObject(objectType, AboutViewState.Shown); }