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


C# Message.GetMessage方法代码示例

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


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

示例1: OnTalkTo

 protected void OnTalkTo(Message msg)
 {
     if (!msg.Contains("Character"))
         return;
     string character = msg.GetMessage("Character").ToString();
     stateMachine.OnTrigger(character);
 }
开发者ID:fdu5526,项目名称:balloon,代码行数:7,代码来源:LogicManager.cs

示例2: ClickButton

 public void ClickButton(Message msg )
 {
     string name = msg.GetMessage("name").ToString();
     if (name == null || name == "")
         return;
     stateMachine.OnTrigger(name);
 }
开发者ID:fdu5526,项目名称:balloon,代码行数:7,代码来源:TLLogicManager.cs

示例3: GrowFlowerOn

	void GrowFlowerOn(Message msg)
	{	
		PetalInfo info = (PetalInfo) msg.GetMessage("info");
		if ( info.affectPointArea == this )
		{
			Disappear();
		}
	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:8,代码来源:PointArea.cs

示例4: OnEndDialog

 protected virtual void OnEndDialog(Message msg)
 {
     if (msg != null && msg.GetMessageStr("dialog").Equals(stateMachine.GetDialogName()))
     {
         Debug.Log("On End Dialog " + msg.GetMessage("dialog").ToString());
         stateMachine.OnEndDialog();
     }
 }
开发者ID:fdu5526,项目名称:balloon,代码行数:8,代码来源:LogicManager.cs

示例5: OnBlow

	void OnBlow(Message msg )
	{
		int temNum = blowPetals.Count;
		int i = 0 ;

		while ( msg.ContainMessage( "petal" + i.ToString()))
		{
			blowPetals.Add( (Petal) msg.GetMessage("petal" + i.ToString()));
			i++;
		}

		if ( blowPetals.Count > temNum )
			CameraStartFollow( blowPetals[temNum].transform );
	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:14,代码来源:CameraManager.cs

示例6: OnGoto

 void OnGoto(Message msg)
 {
     string to = msg.GetMessage("to").ToString();
     GotoScene(to);
 }
开发者ID:fdu5526,项目名称:balloon,代码行数:5,代码来源:HMLogicManager.cs

示例7: OnGoin

    void OnGoin(Message msg)
    {
        string to = msg.GetMessage("to").ToString();

        if (to == "grass")
        {
            MakeGrass();
        }
        if (to == "shadow")
        {
            MakeShadow();
        }

        if (to == "eyes")
        {
            MakeEyes();
        }

        if (to == "tree")
        {
            MakeTree();
        }
    }
开发者ID:fdu5526,项目名称:balloon,代码行数:23,代码来源:HMLogicManager.cs

示例8: OnFlyTo

 void OnFlyTo( Message msg)
 {
     string scene = msg.GetMessage("scene").ToString();
     float time = (float)msg.GetMessage("time");
     StartCoroutine(ShowFlyTo(scene,time));
 }
开发者ID:fdu5526,项目名称:balloon,代码行数:6,代码来源:TLLogicManager.cs

示例9: OnLeaveIsland

    protected void OnLeaveIsland(Message msg )
    {
        Debug.Log("On LEAVE_ISLAND");;
        GetItem();
        string scene ="";
        if ( msg != null && msg.GetMessage("scene") != null )
        {
            scene = msg.GetMessage("scene").ToString();
        }
        StartCoroutine(ShowLeaveIsland(scene));

        if (bgm != null && bgm.volume <= 1f )
            bgm.DOFade(1f, 2f);
    }
开发者ID:fdu5526,项目名称:balloon,代码行数:14,代码来源:TLLogicManager.cs

示例10: MessageRichText

 string MessageRichText(Message message)
 {
     return "<color=#" + JiverTheme.ToHex(uiTheme.senderColor) + ">" + message.GetSenderName() + ": </color>" + message.GetMessage();
 }
开发者ID:voxlovemy,项目名称:jiver-unity-sample,代码行数:4,代码来源:JiverUI.cs

示例11: RenewSwipeTime

	void RenewSwipeTime(Message msg)
	{
		int time = (int)msg.GetMessage("time");
		m_swipeTime = time;
	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:5,代码来源:LogicManager.cs

示例12: OnPetalDestory

	void OnPetalDestory(Message msg )
	{
		if ( msg.ContainMessage( "petal" ) )
		{
			Petal p = msg.GetMessage( "petal" ) as Petal;
			for ( int i = 0 ; i < blowPetals.Count ; ++ i )
			{
				if ( blowPetals[i].ID == p.ID )
				{
					blowPetals.Clear();
					CameraStopFollow();
					break;
				}
			}
		}

	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:17,代码来源:CameraManager.cs

示例13: OnOthersGrowFlower

	void OnOthersGrowFlower(Message msg)
	{	
		PetalInfo info = (PetalInfo) msg.GetMessage("info");
		flowerGrowInfoList.Add(info);
	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:5,代码来源:Petal.cs

示例14: OnCreateController

 public void OnCreateController(Message msg)
 {
     AddProcessUnit(msg.GetMessage("Controller") as ObjectCreatManager.RobotCreateControllor);
 }
开发者ID:AtwoodDeng,项目名称:miniRTS,代码行数:4,代码来源:CreateProcessWindow.cs

示例15: OnGrowFlowerOn

	void OnGrowFlowerOn(Message msg )
	{
		
		PetalInfo info = (PetalInfo)msg.GetMessage( "info" );
		if ( info.parent.gameObject == this.gameObject )
		{
			
			GrowFlowerOn(info);
		}
	}
开发者ID:AtwoodDeng,项目名称:Dandelion,代码行数:10,代码来源:Land.cs


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