IEnumerator Start() { yield return new WaitForSeconds (1); memoryObj = GameObject.Find ("MemoryObject"); if (memoryObj != null) { print (memoryObj); memorize = memoryObj.GetComponent<Memorize> (); stageName = memorize.fGetStageName (); print(memorize.fGetStageName ()); } print (stageName); saveName = pathT + "/" + stageName; if (saveType == 3) { int ln = saveName.Length; GameObject.Find ("saveFolderText").GetComponent<Text> ().text = "all system green "; } createstagecontroll = GameObject.Find ("Main").GetComponent<CreateStageControll> (); sendmail = GameObject.Find ("Main").GetComponent<SendMail> (); }
// 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 () { createstagecontroll = GameObject.Find ("Main").GetComponent<CreateStageControll> (); setCubeList (); // deleteCubeList (); }