public virtual void OnFocusEnter(FocusEventData eventData) { currentState = POIState.kOnFocusEnter; timer = 0.0f; audioService.PlayClip(AudioId.Focus); }
// Use this for initialization void Init(double _lat, double _lon) { // use this to place object VectorExtensions; lat = _lat; lon = _lon; state = POIState.UNDISCOVERED; lastState = state; SetNewState(state); }
public virtual void OnPointerDown(MixedRealityPointerEventData eventData) { if (isCoolingDown) { return; } if (currentState == POIState.kOnFocusEnter) { audioService.PlayClip(AudioId.CardSelect); } else if (currentState == POIState.kOnFocusExit) { audioService.PlayClip(AudioId.CardDeselect); } currentState = POIState.kOnInputClicked; GalaxyExplorerManager.Instance.CardPoiManager.OnPointerDown(null); isCoolingDown = true; StartCoroutine(ButtonCoolDownRoutine(1)); }
public void SetNewState(POIState newState) { // do things to clean last state switch (newState) { case POIState.UNDISCOVERED: {} break; case POIState.DISCOVERED: { isDiscovered = true; discovereyMarker.GetComponent <MeshRenderer> ().material.mainTexture = discovered; } break; case POIState.PARENTMODE: {} break; } state = newState; }
public NodeActionSetPOIState() { State = POIState.Hidden; POIName = "DefaultPOIName"; }
public virtual void OnFocusExit(FocusEventData eventData) { currentState = POIState.kOnFocusExit; timer = 0.0f; }
// If card description of this poi is on focus then keep poi on focus otherwise change state to on focus exit public void UpdateCardDescription(bool isFocused) { timer = 0.0f; currentState = (isFocused) ? POIState.kOnFocusEnter : currentState = POIState.kOnFocusExit; }
//-------------------------------------------------------------------------------------------------------------- // Class Methods public NodeConditionPOIHasState() { TargetedState = POIState.Hidden; POIName = "DefaultPOIName"; }