- Home /
Convert from C# To Java ?????
Hi ... Pleas can u help me with convert these lines from C# To Java .
First Script :( MultiplayerManager )
public static MultiplayerManager instance;
public List<MPPlayer> PlayerList = new List<MPPlayer>();
instance = this;
MyPlayer.PlayerManager.ControllerTransform.position = position;
[System.Serializable]
public class MPPlayer
{
public PlayerManager PlayerManager;
}
Second Script : ( PlayerManager )
public MPPlayer thisplayer
{
get {
return MultiplayerManager.GetMPPlayer(networkView.owner);
}
}
thisplayer.PlayerManager = this;
public MenuManager instance;
up just the few lines I wanna convert them not the whole script
Java? Really? Well, ok - http://www.harding.edu/fmccown/java_csharp_comparison.html
Answer by dubbreak · Feb 19, 2013 at 10:27 PM
Here's a bit of a guide
Some googling and searching the forums and answers will give you more answers.
Don't be surprised if your question gets down voted as this basically falls under the category of "write my code for me". That's not the purpose of Unity Answers.
Stuff like the list can be searched really easily. I just found the list syntax with 20 seconds of googling:
var myList : List.<Type> = new List.<Type>();
Your answer
Follow this Question
Related Questions
Script Editors for Unity 3 Answers
How does this script identify other players? C# 1 Answer
Convert this line of javascript to C# (easy) 1 Answer
Distribute terrain in zones 3 Answers