本文整理汇总了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);
}
示例2: ClickButton
public void ClickButton(Message msg )
{
string name = msg.GetMessage("name").ToString();
if (name == null || name == "")
return;
stateMachine.OnTrigger(name);
}
示例3: GrowFlowerOn
void GrowFlowerOn(Message msg)
{
PetalInfo info = (PetalInfo) msg.GetMessage("info");
if ( info.affectPointArea == this )
{
Disappear();
}
}
示例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();
}
}
示例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 );
}
示例6: OnGoto
void OnGoto(Message msg)
{
string to = msg.GetMessage("to").ToString();
GotoScene(to);
}
示例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();
}
}
示例8: OnFlyTo
void OnFlyTo( Message msg)
{
string scene = msg.GetMessage("scene").ToString();
float time = (float)msg.GetMessage("time");
StartCoroutine(ShowFlyTo(scene,time));
}
示例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);
}
示例10: MessageRichText
string MessageRichText(Message message)
{
return "<color=#" + JiverTheme.ToHex(uiTheme.senderColor) + ">" + message.GetSenderName() + ": </color>" + message.GetMessage();
}
示例11: RenewSwipeTime
void RenewSwipeTime(Message msg)
{
int time = (int)msg.GetMessage("time");
m_swipeTime = time;
}
示例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;
}
}
}
}
示例13: OnOthersGrowFlower
void OnOthersGrowFlower(Message msg)
{
PetalInfo info = (PetalInfo) msg.GetMessage("info");
flowerGrowInfoList.Add(info);
}
示例14: OnCreateController
public void OnCreateController(Message msg)
{
AddProcessUnit(msg.GetMessage("Controller") as ObjectCreatManager.RobotCreateControllor);
}
示例15: OnGrowFlowerOn
void OnGrowFlowerOn(Message msg )
{
PetalInfo info = (PetalInfo)msg.GetMessage( "info" );
if ( info.parent.gameObject == this.gameObject )
{
GrowFlowerOn(info);
}
}