UnityEngine.Networking.ClientScene.GetPlayerController C# (CSharp) Method

GetPlayerController() static private method

static private GetPlayerController ( short playerControllerId, PlayerController &player ) : bool
playerControllerId short
player PlayerController
return bool
        internal static bool GetPlayerController(short playerControllerId, out PlayerController player)
        {
            player = null;
            if (playerControllerId >= localPlayers.Count)
            {
                if (LogFilter.logWarn)
                {
                    Debug.Log("ClientScene::GetPlayer: no local player found for: " + playerControllerId);
                }
                return false;
            }
            if (localPlayers[playerControllerId] == null)
            {
                if (LogFilter.logWarn)
                {
                    Debug.LogWarning("ClientScene::GetPlayer: local player is null for: " + playerControllerId);
                }
                return false;
            }
            player = localPlayers[playerControllerId];
            return (player.gameObject != null);
        }