Esempio n. 1
0
    void Start()
    {
        // Create a session-unique, persistent object for logging.
        // If it already exists (from a previous run), then refind it.
        if ((GameObject.Find("DynamoDB")))
        {
            dynode = GameObject.Find("DynamoDB").GetComponent <DynamoDB.Dynode>();
        }
        else
        {
            GameObject DynodeObject = new GameObject("DynamoDB");
            dynode = DynodeObject.AddComponent <DynamoDB.Dynode>();
        }

        // Set Dynode's parameters
        dynode.AWS_ACCESS_KEY_ID     = awsAccessKeyID;
        dynode.AWS_SECRET_ACCESS_KEY = awsSecretAccessKey;
        dynode.table_name            = tableName;
        dynode.primary_key           = primaryKey;

        //InvokeRepeating("TestLog", 2.0f, 0.5f);
    }
Esempio n. 2
0
    void Start()
    {
        // Create a session-unique, persistent object for logging.
        // If it already exists (from a previous run), then refind it.
        if ((GameObject.Find("DynamoDB")))
        {
            dynode = GameObject.Find("DynamoDB").GetComponent <DynamoDB.Dynode>();
        }
        else
        {
            GameObject DynodeObject = new GameObject("DynamoDB");
            dynode = DynodeObject.AddComponent <DynamoDB.Dynode>();
        }

        // Set Dynode's parameters
        dynode.AWS_ACCESS_KEY_ID     = "AKIAISX5KCURGWDQKUDQ";
        dynode.AWS_SECRET_ACCESS_KEY = "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";
        dynode.table_name            = "Unity";
        dynode.primary_key           = "run_id";

        //InvokeRepeating("TestLog", 2.0f, 0.5f);
    }