public void Delete(Task task, int tokens) { tasks.Remove(task); updateTaskIndeces(); showTasks(); tokenSystem.changeTokenAmountBy(tokens); }
public void OnYes() { if (game == "Block Breaker") { arcadeLoader.LoadBlockBreaker(); tokenSystem.changeTokenAmountBy(-1 * tokensRequired); } else if (game == "Laser Defense") { arcadeLoader.LoadLaserDefense(); tokenSystem.changeTokenAmountBy(-1 * tokensRequired); } else if (game == "Cowboy") { arcadeLoader.LoadCowboy(); tokenSystem.changeTokenAmountBy(-1 * tokensRequired); } else { Debug.Log("Game Not Selected?"); } }
public void onPlayAgain() { tokenSystem.changeTokenAmountBy(TOKENS_REQUIRED * -1); sceneLoader.LoadCowboy(); }
public void AddTenTokens() { tokenSystem.changeTokenAmountBy(10); }
public void onPlayAgain() { tokenSystem.changeTokenAmountBy(TOKENS_REQUIRED * -1); SceneManager.LoadScene("Laser Defense"); }