当前位置: 首页>>代码示例>>C#>>正文


C# Tweener.Pause方法代码示例

本文整理汇总了C#中Tweener.Pause方法的典型用法代码示例。如果您正苦于以下问题:C# Tweener.Pause方法的具体用法?C# Tweener.Pause怎么用?C# Tweener.Pause使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tweener的用法示例。


在下文中一共展示了Tweener.Pause方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Awake

 // Use this for initialization
 protected virtual void Awake()
 {
     tweener = SetupTween();
     tweener.SetEase(easeType);
     tweener.SetAutoKill(false);
     tweener.Pause();
 }
开发者ID:steveimc,项目名称:Rawr,代码行数:8,代码来源:UITween.cs

示例2: OnClick

	void OnClick(){
		if( Time.timeSinceLevelLoad> 0.1f ){
			if( State == 0 ){
				SettingsTween = HOTween.To(Menü, 0.5f, new TweenParms().AutoKill(false)
				                           .Prop("position",MenüPos, true) // Position tween (set as relative)
				                           .Ease(EaseType.EaseInOutQuad) // Ease
				                           );
				SettingsTween.Pause ();
				TweenSlider.ShowMenue = name;
				SettingsTween.PlayForward ();
				OldIcon = Icon.GetComponent<UISprite>().spriteName;
				Icon.GetComponent<UISprite>().spriteName = "ArrowBack";
				Icon.GetComponent<UIButton>().normalSprite = "ArrowBack";
				Icon.transform.localScale = Icon.transform.localScale/1.2f;
				transform.Rotate(0,0,-90);
				Menü.GetComponent<AudioSource>().Play();
				State = 1;
			}else if (State == 1){
				TweenSlider.ShowMenue = null;
				SettingsTween.PlayBackwards ();
				Icon.GetComponent<UISprite>().spriteName = OldIcon;
				Icon.GetComponent<UIButton>().normalSprite = OldIcon;
				Icon.transform.localScale = Icon.transform.localScale*1.2f;
				transform.Rotate(0,0,90);
				Menü.GetComponent<AudioSource>().Play();
				State = 0;
			}
		}
	}
开发者ID:Keyj1n,项目名称:BattlePong,代码行数:29,代码来源:TweenSettings.cs

示例3: Update

	// Use this for initialization
	
	// Update is called once per frame
	void Update () {
		if( Time.timeSinceLevelLoad> 0.1f){
			if(!scriptLoaded){
				scriptLoaded = true;
				ShowMenue = null;

				BackTween = HOTween.To(Slider, 0.5f, new TweenParms().AutoKill(false)
				                       .Prop("position",BackPos, true) // Position tween (set as relative)
				                       .Ease(EaseType.EaseInOutQuad) // Ease
				                       );
				BackTween.PlayForward ();
				Stage = 1;
				
				HoverTween = HOTween.To(Slider, 0.1f, new TweenParms().AutoKill(false)
				                        .Prop("position",HoverPos, true) // Position tween (set as relative)
				                        .Ease(EaseType.EaseInOutQuad) // Ease
				                        );
				HoverTween.Pause ();
				
				ClickTween = HOTween.To(Slider, 0.5f, new TweenParms().AutoKill(false)
				                        .Prop("position",ClickedPos, true) // Position tween (set as relative)
				                        .Ease(EaseType.EaseInOutQuad) // Ease
				                        );
				ClickTween.Pause ();
				
				MenueTween = HOTween.To(Menue, 0.8f, new TweenParms().AutoKill(false)
				                        .Prop("position",MenuePos, true) // Position tween (set as relative)
				                        .Ease(EaseType.EaseInOutQuad) // Ease
				                        );
				MenueTween.Pause ();
			}

			if (ShowMenue != null && ShowMenue != name && Stage == 1) {
				BackTween.PlayBackwards();
				Stage = 0;
			}
			if (ShowMenue == null && Stage == 0) {
				BackTween.PlayForward();
				Slideeffect.getSlided = false;
				Stage = 1;
			}
			if (ShowMenue != null && Stage == 2 && ShowMenue != name ){
				MenueTween.PlayBackwards(); 
				ClickTween.PlayBackwards();
				StartCoroutine(ShowSettings());
				GetComponent<AudioSource>().Play();
				Icon.GetComponent<UISprite>().spriteName = OldIcon;
				OldIcon = null;
				Slideeffect.getSlided = false;
				Stage = 0;
			}
		}
	}
开发者ID:Keyj1n,项目名称:BattlePong,代码行数:56,代码来源:TweenSlider.cs


注:本文中的Tweener.Pause方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。