LocalPlayer() public method

public LocalPlayer ( ) : CaptainsMessPlayer,
return CaptainsMessPlayer,
Example #1
0
        public override void OnStartGame(List <CaptainsMessPlayer> aStartingPlayers)
        {
            base.OnStartGame(aStartingPlayers);

            if (_captainsMess.LocalPlayer().isServer)
            {
                var localPlayer = _captainsMess.LocalPlayer() as Player.Player;
                localPlayer.StartMatch();
            }
        }
Example #2
0
 private void AssignPlayer()
 {
     _localPlayer = _captainsMess.LocalPlayer() as Player.Player;
 }