本文整理汇总了C#中PhotonPlayer.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# PhotonPlayer.ToString方法的具体用法?C# PhotonPlayer.ToString怎么用?C# PhotonPlayer.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhotonPlayer
的用法示例。
在下文中一共展示了PhotonPlayer.ToString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PhotonRpcBroadcastFsmEvent
/// <summary>
/// Function typically called from the action "PhotonViewRpcBroadcasFsmEvent" that use RPC to send information about the event to broadcast
/// </summary>
/// <param name='target'>
/// Photon player Target.
/// </param>
/// <param name='globalEventName'>
/// Global Fsm event name to broadcast to the player target
/// </param>
public void PhotonRpcBroadcastFsmEvent(PhotonPlayer target,string globalEventName)
{
if (LogMessageInfo)
{
Debug.Log("RPC to send global Fsm Event:"+globalEventName+" to player:"+target.ToString());
}
photonView.RPC("rpc", target, globalEventName);
}
示例2: PhotonRpcFsmBroadcastEventWithString
/// <summary>
/// Function typically called from the action "PhotonViewRpcBroadcasFsmEventToPlayer" that use RPC to send information about the event to broadcast
/// </summary>
/// <param name='target'>
/// Photon player Target.
/// </param>
/// <param name='globalEventName'>
/// Global Fsm event name to broadcast to the player target
/// </param>
/// <param name='stringData'>
/// String data to pass with this event. WARNING: this is not supposed to be (nor efficient) a way to synchronize data. This is simply to comply with
/// the ability for FsmEvent to include data.
/// </param>
public void PhotonRpcFsmBroadcastEventWithString(PhotonPlayer target,string globalEventName,string stringData)
{
if (LogMessageInfo)
{
Debug.Log("RPC to send string:"+stringData+" with global Fsm Event:"+globalEventName+" to player:"+target.ToString());
}
photonView.RPC("rpc_s", target, globalEventName, stringData);
}
示例3: OnPhotonPlayerDisconnected
void OnPhotonPlayerDisconnected(PhotonPlayer other){
Debug.Log("Player Left " + other.ToString());
}