void StartGameCallback() { // 設定顏色取得機率 int n = colorResName.Count; int[] p = new int[n]; for (int i = 0; i < n; i++) { p[i] = resWeight[colorResName[i]]; } colorPicker.SetProb(p); // 載入遊戲場景 ButtonManager.ins.UIswitcher.SetBool("goToGame", true); Ticker.StartTicker(0, () => { Admob.bannerView.Destroy(); SceneManager.LoadScene("GameMain"); }); }
private void Awake() { p = new AlgoClasses.Probability(); p.SetProb(new int[] { 1, 3 }); }