public void Insert() { AgentInfo newInfo = new AgentInfo(); for (int i = 0; i < agentName.Count; i++) { name = agentName[i]; delta = deltaTime[i]; path = pathValue[i]; resource = resourceValue[i]; priority = resourcePriority[i]; Movement = continuousMovement[i]; HitValue = hits[i]; States = currentState[i]; newInfo.AgentName = name; newInfo.DeltaTime = delta; newInfo.PathValues = path; newInfo.ResourceValue = resource; newInfo.ResourcePriority = priority; newInfo.ContinuousMovement = Movement; newInfo.EnemyHits = HitValue; newInfo.CurrentState = States; StartCoroutine(_table.Insert <AgentInfo>(newInfo, OnInsertCompleted)); } }
public void InsertScore() { HighScoreData score = new HighScoreData { score = FindObjectOfType <ScoreCounter>().score, player = "test player" }; StartCoroutine(_table.Insert <HighScoreData>(score, OnInsertCompleted)); }
public void Insert() { Highscore score = GetScore(); if (Validate(score)) { StartCoroutine(_table.Insert <Highscore> (score, OnInsertCompleted)); } }
public void createPlayer(String name, String pass, String email) { UserProfile testBoi = new UserProfile(name, pass, email); StartCoroutine(_table.Insert <UserProfile>(testBoi, OnInsertCompleted)); ProfileController.instance.name = savedName; ProfileController.instance.role = "test"; ProfileController.instance.level = 1; ProfileController.instance.avatar = null; SceneManager.LoadScene("MainScene"); }
public void Insert() { Coordinate coordinate = GetCoordinates(); StartCoroutine(table.Insert <Coordinate>(coordinate, null)); }
public void Insert() { Name name = GetName(); StartCoroutine(table.Insert <Name>(name, null)); }
private void InsertInventory() { RecalculateInventoryItems(); Debug.Log("Insert:" + _inventory.ToString()); StartCoroutine(_table.Insert <Inventory> (_inventory, OnInsertCompleted)); }