Пример #1
0
 public void OnTweenMoveCompleted(dfTweenPlayableBase sender)
 {
     if (isDisappear) {
         tweenOut.Play();
     } else {
     }
 }
Пример #2
0
    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();
    }
Пример #3
0
    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();
    }
Пример #4
0
 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();
		
	}
Пример #7
0
 void RemoveLabel_TweenCompleted(dfTweenPlayableBase sender)
 {
     // print("OnTweenCompleted");
     Destroy(gameObject);
 }
Пример #8
0
 public void AnimationEventProxy( dfTweenPlayableBase tween )
 {
     callProxyEventHandler( tween );
 }
Пример #9
0
 protected virtual void  Start()
 {
     owner                 = GetComponent <dfPanel>();
     hideTweensOwner       = GetComponents <dfTweenPlayableBase>().FirstOrDefault(i => i.TweenName == "Hide");
     showTweensDestination = GetComponents <dfTweenPlayableBase>().FirstOrDefault(i => i.TweenName == "Show");
 }
Пример #10
0
    protected virtual void TweenCompleted( dfTweenPlayableBase tween )
    {
        if( tween.TweenName == "Show" || tween.TweenName == "Submenu Return" )
        {
            Focus();
        }

        if( tween.TweenName == "Hide" )
        {
            owner.Hide();
        }
    }
Пример #11
0
 public void OnTweenOutCompleted(dfTweenPlayableBase sender)
 {
     GameController._instance.numArray[x][y]--;
     Destroy(this.gameObject);
 }