Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     ////////////////////////////////////
     //rater193-edit: Event hook!
     Rater193.Init(args);
     ////////////////////////////////////
     StartServer();
 }
Ejemplo n.º 2
0
    public void SpawnSelf()
    {
        GameObject player = (GameObject)Instantiate(Resources.Load("Prefabs/Player/Player"));

        MyInfo.player = player;
        player.GetComponent <PlayerControl>().networking = gameObject;
        player.GetComponent <SetPlayer>().SetInfo(MyInfo.username, MyInfo.skinColour, MyInfo.hairColour, MyInfo.clothingColour, 0, 0);

        Rater193.networking = gameObject.GetComponent <Networking>();
        Rater193.Init();
        chatBox = GameObject.Find("Canvas/Chatbox");
        chatBox.GetComponent <ChatboxControl>().mapEditor = GetComponent <Networking>().mapEditor;
    }