public void OnTweenMoveCompleted(dfTweenPlayableBase sender) { if (isDisappear) { tweenOut.Play(); } else { } }
private static void showDebugPlayButton(dfTweenPlayableBase tween) { if (!Application.isPlaying) { return; } using (dfEditorUtil.BeginGroup("Debug")) EditorGUILayout.BeginHorizontal(); { GUILayout.Space(dfEditorUtil.LabelWidth + 5); if (GUILayout.Button("Play", "minibutton")) { tween.Play(); } if (GUILayout.Button("Stop", "minibutton")) { tween.Stop(); } if (GUILayout.Button("Reset", "minibutton")) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
private static void showDebugButtons(dfTweenPlayableBase tween) { if (!Application.isPlaying) { return; } using (dfEditorUtil.BeginGroup("Debug")) EditorGUILayout.BeginHorizontal(); { GUILayout.Space(dfEditorUtil.LabelWidth + 5); if (GUILayout.Button("Play", "minibutton")) { tween.Play(); } if (tween.IsPlaying && tween is dfTweenComponentBase) { var target = tween as dfTweenComponentBase; if (GUILayout.Button(target.IsPaused ? "Resume" : "Pause", "minibutton")) { target.IsPaused = !target.IsPaused; } } if (GUILayout.Button("Stop", "minibutton")) { tween.Stop(); } if (GUILayout.Button("Reset", "minibutton")) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
public void AnimationEventProxy(dfTweenPlayableBase tween) { callProxyEventHandler(tween); }
private static void showDebugPlayButton( dfTweenPlayableBase tween ) { if( !Application.isPlaying ) return; GUILayout.Label( "Debug", "HeaderLabel" ); EditorGUILayout.BeginHorizontal(); { GUILayout.Space( dfEditorUtil.LabelWidth + 5 ); if( GUILayout.Button( "Play", "minibutton" ) ) { tween.Play(); } if( GUILayout.Button( "Stop", "minibutton" ) ) { tween.Stop(); } if( GUILayout.Button( "Reset", "minibutton" ) ) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
private static void showDebugButtons( dfTweenPlayableBase tween ) { if( !Application.isPlaying ) return; using( dfEditorUtil.BeginGroup( "Debug" ) ) EditorGUILayout.BeginHorizontal(); { GUILayout.Space( dfEditorUtil.LabelWidth + 5 ); if( GUILayout.Button( "Play", "minibutton" ) ) { tween.Play(); } if( tween.IsPlaying && tween is dfTweenComponentBase ) { var target = tween as dfTweenComponentBase; if( GUILayout.Button( target.IsPaused ? "Resume" : "Pause", "minibutton" ) ) { target.IsPaused = !target.IsPaused; } } if( GUILayout.Button( "Stop", "minibutton" ) ) { tween.Stop(); } if( GUILayout.Button( "Reset", "minibutton" ) ) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
void RemoveLabel_TweenCompleted(dfTweenPlayableBase sender) { // print("OnTweenCompleted"); Destroy(gameObject); }
public void AnimationEventProxy( dfTweenPlayableBase tween ) { callProxyEventHandler( tween ); }
protected virtual void Start() { owner = GetComponent <dfPanel>(); hideTweensOwner = GetComponents <dfTweenPlayableBase>().FirstOrDefault(i => i.TweenName == "Hide"); showTweensDestination = GetComponents <dfTweenPlayableBase>().FirstOrDefault(i => i.TweenName == "Show"); }
protected virtual void TweenCompleted( dfTweenPlayableBase tween ) { if( tween.TweenName == "Show" || tween.TweenName == "Submenu Return" ) { Focus(); } if( tween.TweenName == "Hide" ) { owner.Hide(); } }
public void OnTweenOutCompleted(dfTweenPlayableBase sender) { GameController._instance.numArray[x][y]--; Destroy(this.gameObject); }