public void setData(CoinSet data) { this.data = data; this.button.Text = this.data.value.ToString(); this.label.Text = this.data.count.ToString(); this.Enabled = this.data.count > 0; }
public void StartPattern() { gameControl = GameObject.Find("GameControl").GetComponent("GameControl") as GameControl; gp = GameObject.Find("GameControl").GetComponent<GamePlay>(); gp.Bonus = false; transform.position = new Vector3(18, gp.lastFlowY, transform.position.z); gp.LastP = transform.gameObject; c = transform.FindChild("Coin").GetComponent("CoinSet") as CoinSet; c.TurnCoin(true); check = true; end = false; }
public void StartPattern() { if(gp == null) gp = GameObject.Find("GameControl").GetComponent<GamePlay>(); flowY = (int)Random.Range(-1.5F,1.5F); if(gp.lastFlowY > 0 && flowY > 0) flowY = 0; else if(gp.lastFlowY < 1 && flowY == -1) flowY = 0; gp.lastFlowY += flowY; transform.position = new Vector3(17.7F+gp.nextHop,gp.lastFlowY,transform.position.z); gp.nextHop = transform.position.x + ((size-1)*18); if(transform.FindChild("Coin") != null) { if(c == null) c = transform.FindChild("Coin").GetComponent("CoinSet") as CoinSet; c.TurnCoin(true); } gp.PatterOn = true; //check = true; //end = false; }
public void PutChangeBack(CoinSet coinSet) { _coinStash.Put(coinSet); }