private void CreateTable()
        {
            // Suscribe to Drive event to get the Drive response.
            Drive.responseCallback += HandleDriveResponse;

            string[] tableHeaders = new string[] { "key", "english", "spanish" };
            Drive.CreateTable(tableHeaders, localizationTableName, false);
        }
Пример #2
0
        private void CreatePlayerTable()
        {
            Debug.Log("<color=yellow>Creating a table in the cloud for players data.</color>");

            // Creating a string array for field names (table headers) .
            string[] fieldNames = new string[4];
            fieldNames[0] = "name";
            fieldNames[1] = "level";
            fieldNames[2] = "health";
            fieldNames[3] = "role";

            // Request for the table to be created on the cloud.
            Drive.CreateTable(fieldNames, _tableName, true);
        }
Пример #3
0
        public void CreateConsoleLogTable()
        {
            var logFields = Enum.GetNames(typeof(TABLE_HEADERS));

            Drive.CreateTable(logFields, TABLE_NAME);
        }