Пример #1
0
        public void Start()
        {
            locatorEvent                  = this.gameObject.AddComponent <LocatorEvent>();
            locatorEvent.address          = "restore_radio_button";
            locatorEvent.eventParameters += new EventParameter.RadioButton(defaultButtonIndex);
            locatorEvent.fireEvent();

            InitButtons();
        }
Пример #2
0
        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));
        }
Пример #3
0
 public void Start()
 {
     locatorEvent         = gameObject.AddComponent <LocatorEvent>();
     locatorEvent.address = "login";
     locatorEvent.fireEvent();
 }