public void Start() { locatorEvent = this.gameObject.AddComponent <LocatorEvent>(); locatorEvent.address = "restore_radio_button"; locatorEvent.eventParameters += new EventParameter.RadioButton(defaultButtonIndex); locatorEvent.fireEvent(); InitButtons(); }
public IEnumerator Start() { var domainRoot = gameObject.AddComponent <DomainRoot>(); domainRoot.domain = "package"; locatorEvent = gameObject.AddComponent <LocatorEvent>(); var webSocketConnector = gameObject.AddComponent <WebSocketConnector>() as WebSocketConnector; connector = new PhoenixSocketConnector(webSocketConnector); connector.onConnected(onConnect); connector.receive(onReceive); enabled = false; var caller = gameObject.GetComponent <Caller>(); yield return(connector.connect(caller.ServerAddress)); }
public void Start() { locatorEvent = gameObject.AddComponent <LocatorEvent>(); locatorEvent.address = "login"; locatorEvent.fireEvent(); }