static void Main(string[] args) { //////////////////////////////////// //rater193-edit: Event hook! Rater193.Init(args); //////////////////////////////////// StartServer(); }
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; }