public void OnLookEnd(RaycastHit hit, string name) { if (!_looking) { return; } _looking = false; //Debug.Log( "Ease Marker Out <" + name + ">" ); EaseEvent.MarkerEnter(false, MarkerName, transform); if (_ease.HighlightMarkers) { GetComponent <Renderer>().material.color = _saveColor; } }
public void OnLookStart(RaycastHit hit, string name) { //Dictionary< string, string > eventData; if (_looking) { return; } _looking = true; //Debug.Log( "Ease Marker In <" + name + ">" ); EaseEvent.MarkerEnter(true, MarkerName, transform); var material = GetComponent <Renderer>().material; _saveColor = material.color; if (_ease.HighlightMarkers) { material.color = _ease.HighlightColor; } }