// Use this for initialization void Start() { //startBtn = GameObject.Find ("ButtonStart"); print (startBtn); mainkawashima = GameObject.Find ("Main").GetComponent<MainKawashima> (); stagename = Application.loadedLevelName; startbtnScript = startBtn.GetComponent<StartBtn> (); button = gameObject.GetComponent<Button>(); buttonconfirm = retryConfirmBtn.GetComponent<Button>(); buttonCancel = cancelBtn.GetComponent<Button>(); confirmPanel.GetComponent<IsThisUi> ().enabled = false; confirmPanel.SetActive (false); }
// Use this for initialization void Start() { main = GameObject.Find ("Main"); mainkawashima = main.GetComponent<MainKawashima>(); }
// Use this for initialization void Start() { main = GameObject.Find ("Main"); mainkawashima = main.GetComponent<MainKawashima> (); splingObj = GameObject.Find ("NumberSplingText"); splingTxt = splingObj.GetComponent<Text>(); splingTxt.text = cubeSpling.ToString(); splingBtn = GameObject.Find ("ButtonDropSpling"); dropcubeJ = splingBtn.GetComponent<DropCubBtnKawashima> (); straightObj = GameObject.Find ("NumberStraightText"); straightTxt = straightObj.GetComponent<Text>(); straightTxt.text = cubeStraight.ToString(); straightBtn = GameObject.Find ("ButtonDropStraight"); dropcubeS = straightBtn.GetComponent<DropCubBtnKawashima> (); leftObj = GameObject.Find ("NumberLeftText"); leftTxt = leftObj.GetComponent<Text>(); leftTxt.text = cubeLeft.ToString(); leftBtn = GameObject.Find ("ButtonDropLeft"); dropcubeL = leftBtn.GetComponent<DropCubBtnKawashima> (); rightObj = GameObject.Find ("NumberRightText"); rightTxt = rightObj.GetComponent<Text>(); rightTxt.text = cubeRight.ToString(); rightBtn = GameObject.Find ("ButtonDropRight"); dropcubeR = rightBtn.GetComponent<DropCubBtnKawashima> (); //********************************************* 0629 igarashi start bombObj = GameObject.Find ("NumberBombText"); bombTxt = bombObj.GetComponent<Text>(); bombTxt.text = cubeBomb.ToString(); bombBtn = GameObject.Find ("ButtonDropBomb"); dropcubeB= bombBtn.GetComponent<DropCubBtnKawashima> (); //********************************************* 0629 igarashi end if (cubeSpling <=0) { dropcubeJ.isSplingNoMore = true; mainkawashima.isSelected = true; } if (cubeStraight <=0) { dropcubeS.isStraightNoMore = true; mainkawashima.isSelected = true; } if (cubeLeft <=0) { dropcubeL.isLeftNoMore = true; mainkawashima.isSelected = true; } if (cubeRight <=0) { dropcubeR.isRightNoMore = true; mainkawashima.isSelected = true; } if (cubeBomb <=0) { dropcubeB.isBombNoMore = true; mainkawashima.isSelected = true; } }
// Use this for initialization void Start() { playercontroll = GameObject.Find ("Boxs2nd2").GetComponent<PlayerControll> (); createstagecontroll = GameObject.Find ("Main").GetComponent<CreateStageControll> (); origin = gameObject.tag; StartCoroutine ("fBlockIsOnGroundFlag"); if (gameObject.tag == "TurnL") { clone = Instantiate (turnCanvas, transform.position, Quaternion.Euler (90, 0, 0)) as GameObject; clone.transform.SetParent(transform); StartCoroutine ("fRollLObject"); } if (gameObject.tag == "TurnR") { clone = Instantiate (turnCanvas, transform.position, Quaternion.Euler (90, 0, 0)) as GameObject; clone.transform.localScale = new Vector3(-1 * clone.transform.localScale.x, clone.transform.localScale.y, clone.transform.localScale.z); clone.transform.SetParent(transform); StartCoroutine ("fRollRObject"); } //********************************************* 0629 igarashi start if (gameObject.tag == "Bomb") { StartCoroutine ("fBombObject"); } //********************************************* 0629 igarashi end //-------------------------------------------------0715 kawashima add mainkawashima = GameObject.Find ("Main").GetComponent<MainKawashima> (); stagecontroll = GameObject.Find ("Main").GetComponent<Stage01ControlKawashima> (); }
// Use this for initialization void Start() { main = GameObject.Find ("Main"); mainkawashima = main.GetComponent<MainKawashima> (); //image = gameObject.GetComponent<Image> (); /* Debug.Log ("isRightNoMore = " + isRightNoMore); if (isSplingNoMore || isStraightNoMore || isLeftNoMore || isRightNoMore || isBombNoMore) { Debug.Log("NoMore Is TRUE"); image.color = new Color(0.5f, 0.5f, 0.5f, 1.0f); } */ }
// Use this for initialization void Start() { main = GameObject.Find ("Main"); mainkawashima = main.GetComponent<MainKawashima> (); splingObj = GameObject.Find ("NumberSplingText"); splingTxt = splingObj.GetComponent<Text>(); splingTxt.text = cubeSpling.ToString(); splingBtn = GameObject.Find ("ButtonDropSpling"); dropcubeJ = splingBtn.GetComponent<DropCubBtnKawashima> (); straightObj = GameObject.Find ("NumberStraightText"); straightTxt = straightObj.GetComponent<Text>(); straightTxt.text = cubeStraight.ToString(); straightBtn = GameObject.Find ("ButtonDropStraight"); dropcubeS = straightBtn.GetComponent<DropCubBtnKawashima> (); leftObj = GameObject.Find ("NumberLeftText"); leftTxt = leftObj.GetComponent<Text>(); leftTxt.text = cubeLeft.ToString(); leftBtn = GameObject.Find ("ButtonDropLeft"); dropcubeL = leftBtn.GetComponent<DropCubBtnKawashima> (); rightObj = GameObject.Find ("NumberRightText"); rightTxt = rightObj.GetComponent<Text>(); rightTxt.text = cubeRight.ToString(); rightBtn = GameObject.Find ("ButtonDropRight"); dropcubeR = rightBtn.GetComponent<DropCubBtnKawashima> (); //********************************************* 0629 igarashi start bombObj = GameObject.Find ("NumberBombText"); bombTxt = bombObj.GetComponent<Text>(); bombTxt.text = cubeBomb.ToString(); bombBtn = GameObject.Find ("ButtonDropBomb"); dropcubeB= bombBtn.GetComponent<DropCubBtnKawashima> (); //********************************************* 0629 igarashi end }