• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# EZInputDelegate类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中EZInputDelegate的典型用法代码示例。如果您正苦于以下问题:C# EZInputDelegate类的具体用法?C# EZInputDelegate怎么用?C# EZInputDelegate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EZInputDelegate类属于命名空间,在下文中一共展示了EZInputDelegate类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddButton

	void AddButton( eMainBtnType _type , UIButton _btn , string _text , EZInputDelegate _del , bool isNewImg = false , GameObject goRollingEffect = null , bool isRollingEffect = false )
	{
		if( m_dicBtn.ContainsKey(_type) == true )
			return;
		
		GameObject	go = _btn.gameObject;
		
		_btn.Text = _text;
		_btn.SetInputDelegate( _del );
		
		AsButtonEffect btnEffect = go.AddComponent<AsButtonEffect>();
		
		m_dicBtn.Add( _type , _btn );
		
		if( isNewImg == true )
			SetNewImg( _type , isNewImg );
		
		if( goRollingEffect != null )
		{
			btnEffect.RollingEffect = goRollingEffect;
			btnEffect.SetRollingEffect( isRollingEffect );
		}
	}
开发者ID:ftcaicai,项目名称:ArkClient,代码行数:23,代码来源:AsMainMenuDlg.cs


示例2: RemoveInputDelegate

	public override void RemoveInputDelegate(EZInputDelegate del)
	{
		if (knob != null)
			knob.RemoveInputDelegate(del);

		base.RemoveInputDelegate(del);
	}
开发者ID:nbolabs,项目名称:KnifeLi,代码行数:7,代码来源:UISlider.cs


示例3: AddInputDelegate

	public override void AddInputDelegate(EZInputDelegate del)
	{
		if (knob != null)
			knob.AddInputDelegate(del);

		base.AddInputDelegate(del);
	}
开发者ID:nbolabs,项目名称:KnifeLi,代码行数:7,代码来源:UISlider.cs


示例4: SetInputDelegate

	public override void SetInputDelegate(EZInputDelegate del)
	{
		if(knob != null)
			knob.SetInputDelegate(del);

		base.SetInputDelegate(del);
	}
开发者ID:nbolabs,项目名称:KnifeLi,代码行数:7,代码来源:UISlider.cs


示例5: RemoveInputDelegate

	public virtual void RemoveInputDelegate(EZInputDelegate del)
	{
		inputDelegate -= del;
	}
开发者ID:psaykham,项目名称:ARPandaBox,代码行数:4,代码来源:ControlBase.cs


示例6: AddInputDelegate

	public virtual void AddInputDelegate(EZInputDelegate del)
	{
		inputDelegate += del;
	}
开发者ID:psaykham,项目名称:ARPandaBox,代码行数:4,代码来源:ControlBase.cs


示例7: SetInputDelegate

	public virtual void SetInputDelegate(EZInputDelegate del)
	{
		inputDelegate = del;
	}
开发者ID:psaykham,项目名称:ARPandaBox,代码行数:4,代码来源:ControlBase.cs


示例8: RemoveInputDelegate

	public void RemoveInputDelegate(EZInputDelegate del) { }
开发者ID:raxter,项目名称:6-Fold-Mass-Production,代码行数:1,代码来源:UIVirtualScreen.cs


示例9: AddInputDelegate

	public void AddInputDelegate(EZInputDelegate del) { }
开发者ID:raxter,项目名称:6-Fold-Mass-Production,代码行数:1,代码来源:UIVirtualScreen.cs


示例10: SetInputDelegate

	public void SetInputDelegate(EZInputDelegate del) { }
开发者ID:raxter,项目名称:6-Fold-Mass-Production,代码行数:1,代码来源:UIVirtualScreen.cs


示例11: SetInputDelegate

	public virtual EZInputDelegate SetInputDelegate(EZInputDelegate del)
	{
		EZInputDelegate oldDel = inputDelegate;
		inputDelegate = del;
		return oldDel;
	}
开发者ID:robert-irribarren,项目名称:TraumaOR,代码行数:6,代码来源:ControlBase.cs


示例12: SetInputDelegate

	public override EZInputDelegate SetInputDelegate(EZInputDelegate del)
	{
		if(knob != null)
			return knob.SetInputDelegate(del);

		return base.SetInputDelegate(del);
	}
开发者ID:robert-irribarren,项目名称:TraumaOR,代码行数:7,代码来源:UISlider.cs


示例13: Copy

	public virtual void Copy(IControl ctl, ControlCopyFlags flags)
	{
		if (!(ctl is ControlBase))
			return;

		ControlBase c = (ControlBase)ctl;


		// Copy transitions:
		if ((flags & ControlCopyFlags.Transitions) == ControlCopyFlags.Transitions)
		{
			if (c is UIStateToggleBtn3D)
			{
				if (c.Transitions != null)
				{
					((UIStateToggleBtn3D)this).transitions = new EZTransitionList[c.Transitions.Length];
					for (int i = 0; i < Transitions.Length; ++i)
						c.Transitions[i].CopyToNew(Transitions[i], true);
				}
			}
			else
			{
				if (Transitions != null && c.Transitions != null)
					for (int i = 0; i < Transitions.Length && i < c.Transitions.Length; ++i)
						c.Transitions[i].CopyTo(Transitions[i], true);
			}
		}


		if ((flags & ControlCopyFlags.Text) == ControlCopyFlags.Text)
		{
			// See if we want to clone the other
			// control's text mesh:
			if (spriteText == null && c.spriteText != null)
			{
				GameObject newText = (GameObject)Instantiate(c.spriteText.gameObject);
				newText.transform.parent = transform;
				newText.transform.localPosition = c.spriteText.transform.localPosition;
				newText.transform.localScale = c.spriteText.transform.localScale;
				newText.transform.localRotation = c.spriteText.transform.localRotation;
			}

			Text = c.Text;
		}

		if ((flags & ControlCopyFlags.Appearance) == ControlCopyFlags.Appearance)
		{
			// See if we can copy the other control's collider's settings:
			if (collider.GetType() == c.collider.GetType())
			{
				if (collider is BoxCollider)
				{
					BoxCollider bc1 = (BoxCollider)collider;
					BoxCollider bc2 = (BoxCollider)c.collider;
					bc1.center = bc2.center;
					bc1.size = bc2.size;
				}
				else if (collider is SphereCollider)
				{
					SphereCollider sc1 = (SphereCollider)collider;
					SphereCollider sc2 = (SphereCollider)c.collider;
					sc1.center = sc2.center;
					sc1.radius = sc2.radius;
				}
				else if (collider is CapsuleCollider)
				{
					CapsuleCollider cc1 = (CapsuleCollider)collider;
					CapsuleCollider cc2 = (CapsuleCollider)c.collider;
					cc1.center = cc2.center;
					cc1.radius = cc2.radius;
					cc1.height = cc2.height;
					cc1.direction = cc2.direction;
				}
				else if (collider is MeshCollider)
				{
					MeshCollider mc1 = (MeshCollider)collider;
					MeshCollider mc2 = (MeshCollider)c.collider;
					mc1.smoothSphereCollisions = mc2.smoothSphereCollisions;
					mc1.convex = mc2.convex;
					mc1.sharedMesh = mc2.sharedMesh;
				}

				collider.isTrigger = c.collider.isTrigger;
			}
		}

		if ((flags & ControlCopyFlags.Invocation) == ControlCopyFlags.Invocation)
		{
			changeDelegate = c.changeDelegate;
			inputDelegate = c.inputDelegate;
		}

		if ((flags & ControlCopyFlags.State) == ControlCopyFlags.State)
		{
			Container = c.Container;

			if (Application.isPlaying)
				controlIsEnabled = c.controlIsEnabled;
		}
	}
开发者ID:psaykham,项目名称:ARPandaBox,代码行数:100,代码来源:ControlBase.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# EZTransition类代码示例发布时间:2022-05-24
下一篇:
C# EZDragDropDelegate类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap