protected override void Awake() { if (!enabled) return; print("Vkontakte start"); _Vkontakte = this; vk = this.GetComponentInChildren<z0Vk>(); base.Awake(); }
protected override void Awake() { if (!enabled) { return; } print("Vkontakte start"); _Vkontakte = this; vk = this.GetComponentInChildren <z0Vk>(); base.Awake(); }
private MessageWindow GetWindow(z0Vk.user user) { MessageWindow msgw; if (windows.ContainsKey(user.uid)) msgw = windows[user.uid]; else { msgw = gameObject.AddComponent<MessageWindow>(); msgw.user = user; windows.Add(user.uid, msgw); } return msgw; }
private void AddKickButton(z0Vk.user user) { GUILayout.Label(user.texture, GUILayout.Width(50), GUILayout.Height(40)); if (Network.isServer && user.nwid != Network.player && GUILayout.Button(lc.kick.ToString())) { rpcwrite(user.nick + lc.kicked); Network.CloseConnection(user.nwid, true); RPCUserDisconnected(user.nwid.GetHashCode()); } }
private void PrintPlayer(z0Vk.user user) { GUILayout.BeginHorizontal(); GUILayout.Label(String.Format(table, user.nick, user.frags, user.ping, user.fps, user.deaths)); AddKickButton(user); GUILayout.EndHorizontal(); }