void Start() { http = gameObject.AddComponent <DynamoDB.DDBHTTP>(); http.action = "DynamoDB_20120810.Scan"; http.AWS_ACCESS_KEY_ID = key; http.AWS_SECRET_ACCESS_KEY = secret; get = gameObject.GetComponent <Button>(); get.onClick.AddListener(Scan); }
void Start() { // Achieve Session Persistence DontDestroyOnLoad(gameObject); // For detecting scene changes SceneManager.activeSceneChanged += onSceneChanged; // Call function on game start onSceneChanged(SceneManager.GetActiveScene(), SceneManager.GetActiveScene()); session_id = generateID(); startTime = DateTime.UtcNow; http = gameObject.AddComponent <DDBHTTP>(); http.action = "DynamoDB_20120810.PutItem"; http.AWS_ACCESS_KEY_ID = AWS_ACCESS_KEY_ID; http.AWS_SECRET_ACCESS_KEY = AWS_SECRET_ACCESS_KEY; //Debug.Log("Dynode instance created..."); }