private void StartCharacterSearch() { if (CharactersController.GetCurrent() != null) { _currentArCharacter = CharactersController.GetCurrent(); UserInterface.ShowMessage(string.Format("Find {0}", _currentArCharacter.CharacterName)); UserInterface.SetOutline(_currentArCharacter.OutlineSprite, 0.75f); } }
public void CharacterDetected(ArCharacter character) { ArCharacter currentCharacter = CharactersController.GetCurrent(); if (character == currentCharacter) { UserInterface.HideOutlineImage(); currentCharacter.StartAnimation(() => { BackToMarker(); }); } else { //What we do if we find wrong character } }