Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'Highscores' table
        _table = _client.GetTable <Inventory> ("Inventory");

        // set TSTableView delegate
        _tableView.dataSource = this;

        // setup token using Unity Inspector value
        if (!String.IsNullOrEmpty(_facebookAccessToken))
        {
            InputField inputToken = GameObject.Find("FacebookAccessToken").GetComponent <InputField> ();
            inputToken.text = _facebookAccessToken;
        }

        // hide controls until login
        CanvasGroup group = GameObject.Find("UserDataGroup").GetComponent <CanvasGroup> ();

        group.alpha        = 0;
        group.interactable = false;

        UpdateUI();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'HighScoreScripts' table
        _table = _client.GetTable <HighScoreData>("Banana_HighScores");
    }
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'Highscores' table
        _table = _client.GetTable <AgentInfo>("AgentInfo");
    }
    // Use this for initialization
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'Highscores' table
        _table = _client.GetTable <Highscore> ("Highscores");

        // set TSTableView delegate
        _tableView.dataSource = this;

        UpdateUI();
    }
    // Use this for initialization
    void Start()
    {
        EmailField.onEndEdit.AddListener(delegate { tryLogin(); });
        PassField.onEndEdit.AddListener(delegate { tryLogin(); });

        _client = new AppServiceClient(_appUrl);

        _table = _client.GetTable <UserProfile>("Users");

        savedEmail = "Blank";
        savedPass  = "******";

        Button btn  = SubmitButton.GetComponent <Button>();
        Button btn2 = BackButton.GetComponent <Button>();

        btn2.onClick.AddListener(IntroLoad);
        btn.onClick.AddListener(tryLogin);
    }
Beispiel #6
0
    // Use this for initialization
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'Highscores' table
        _table = _client.GetTable <Inventory> ("Inventory");

        // set TSTableView delegate
        _tableView.dataSource = this;

        // hide controls until login
        CanvasGroup group = GameObject.Find("UserDataGroup").GetComponent <CanvasGroup> ();

        group.alpha        = 0;
        group.interactable = false;

        UpdateUI();
    }
    // Use this for initialization
    void Start()
    {
        // Create App Service client
        _client = new AppServiceClient(_appUrl);

        // Get App Service 'Highscores' table
        _table = _client.GetTable <Highscore> ("Highscores");

        // set TSTableView delegate
        _tableView.dataSource = this;

        // setup token using Unity Inspector value
        if (!String.IsNullOrEmpty(_facebookAccessToken))
        {
            InputField inputToken = GameObject.Find("FacebookAccessToken").GetComponent <InputField> ();
            inputToken.text = _facebookAccessToken;
        }

        UpdateUI();
    }
Beispiel #8
0
    // Use this for initialization
    void Start()
    {
        inputName.onEndEdit.AddListener(delegate { saveAll(); });
        inputEmail.onEndEdit.AddListener(delegate { saveAll(); });
        inputPass.onEndEdit.AddListener(delegate { saveAll(); });

        _client = new AppServiceClient(_appUrl);

        _table = _client.GetTable <UserProfile>("Users");

        savedName  = "Blank";
        savedEmail = "Blank";
        savedPass  = "******";

        Button btn  = SubmitButton.GetComponent <Button>();
        Button btn2 = BackButton.GetComponent <Button>();

        btn2.onClick.AddListener(IntroLoad);
        btn.onClick.AddListener(saveAll);
    }
Beispiel #9
0
 void Start()
 {
     client = new AppServiceClient("https://poc-ra.azurewebsites.net");
     table  = client.GetTable <Name>("Coordinates");
 }