void OnSplineRefresh(CurvySplineEventArgs e) { if (Time.realtimeSinceStartup - mLastRefresh > AutoRefreshSpeed) { mLastRefresh = Time.realtimeSinceStartup; Refresh(false); } }
void OnSplineRefresh(CurvySplineEventArgs e) { var slot=getSlot((CurvySplineBase)e.Sender); if (slot == null) ((CurvySplineBase)e.Sender).OnRefresh.RemoveListener(OnSplineRefresh); else slot.VertexData.Clear(); }
void OnSplineRefresh(CurvySplineEventArgs e) { var slot = getSlot((CurvySplineBase)e.Sender); if (slot == null) { ((CurvySplineBase)e.Sender).OnRefresh.RemoveListener(OnSplineRefresh); } else { slot.VertexData.Clear(); } }
public void DebugLog(CurvySplineEventArgs e) { DebugLogStatic(e); }
/// <summary> /// Print some event details to the console /// </summary> /// <param name="e"></param> public static void DebugLogStatic(CurvySplineEventArgs e) { Debug.Log(string.Format("Sender/Spline/Data: {0}/{1}/{2}", e.Sender, e.Spline, e.Data)); }
void OnSplineRefresh(CurvySplineEventArgs e) { Refresh(); }
/*! \cond PRIVATE */ void m_Spline_OnRefresh(CurvySplineEventArgs e) { if (!enabled || !gameObject.activeInHierarchy) return; if (m_Spline == e.Spline) { Dirty = true; #if UNITY_EDITOR if (!Application.isPlaying) { if (IsManagedResource(Spline)) { Generator.CancelInvoke("Update"); Generator.Invoke("Update", 0); } else Generator.Refresh(); } #endif } else e.Spline.OnRefresh.RemoveListener(m_Spline_OnRefresh); }
/// <summary> /// Print some event details to the console /// </summary> /// <param name="e"></param> public static void DebugLogStatic(CurvySplineEventArgs e) { Debug.Log(string.Format("Sender/Spline/Data: {0}/{1}/{2}", e.Sender, e.Spline, e.Data)); }
void OnSourceRefresh(CurvySplineEventArgs e) { Debug.Log("refresh"); refreshNow = true; }
void OnSplineRefresh(CurvySplineEventArgs e) { mNeedRefresh=true; }
void onSplineRefresh(CurvySplineEventArgs e) { FsmEventData _eventData = new FsmEventData(); this.FirePlayMakerEvent(SplineOnRefresh, splineOnRefreshEventTarget, _eventData); }
void OnSourceRefresh(CurvySplineEventArgs e) { Debug.Log("refresh"); refreshNow = true; }
void OnSplineRefresh(CurvySplineEventArgs e) { Refresh(); }
public void DebugLog(CurvySplineEventArgs e) { DebugLogStatic(e); }
void OnSplineRefresh(CurvySplineEventArgs e) { if (Time.realtimeSinceStartup - mLastRefresh > AutoRefreshSpeed) { mLastRefresh = Time.realtimeSinceStartup; Refresh(); } }
void OnSourceRefresh(CurvySplineEventArgs e) { refreshNow = true; }
protected override void OnRefreshSpline(CurvySplineEventArgs e) { base.OnRefreshSpline(e); graphic.SetVerticesDirty(); }
protected virtual void OnRefreshSpline(CurvySplineEventArgs e) { if (e.Sender is CurvySplineBase && e.Sender != Spline) ((CurvySplineBase)e.Sender).OnRefresh.RemoveListener(OnRefreshSpline); else { if (Active) { if (Application.isPlaying) { if (mKeepDistanceAt > 0 && IsInitialized && IsPlaying) { AbsolutePosition = mKeepDistanceAt; mKeepDistanceAt = 0; } // Refresh if static (otherwise done in Update()) if (Speed == 0) Refresh(); } else if (IsInitialized) // Align if not moving Prepare(); } else UnbindEvents(); } }
protected override void OnRefreshSpline(CurvySplineEventArgs e) { base.OnRefreshSpline(e); graphic.SetVerticesDirty(); }