// Start is called before the first frame update void Start() { mSpVide = Instantiate(this.GetComponent <SpriteRenderer>().sprite); mStGreen = STATE.HAS; mStRed = STATE.HAS; mItemsBox = FindObjectOfType <ItemsBox>(); mQuizReception = this.GetComponent <QuizReception>(); }
// Start is called before the first frame update void Start() { mEnding = FindObjectOfType <Ending>(); Debug.Assert(mEnding != null); cntReceived = 0; itemsBox = FindObjectOfType <ItemsBox>(); quizReception = this.transform.Find("Area").GetComponent <QuizReception>(); }
// Start is called before the first frame update void Start() { mEnding = FindObjectOfType <Ending>(); Debug.Assert(mEnding != null); cntReceived = 0; itemsBox = FindObjectOfType <ItemsBox>(); quizReception = this.transform.Find("Area").GetComponent <QuizReception>(); mShowName = new List <ShowName>(this.transform.Find("Area").GetComponents <ShowName>()); mShowName[0].SetActive(true); mShowName[1].SetActive(false); }
// Start is called before the first frame update void Start() { End.SetActive(false); isResolved = false; quizReception = this.GetComponent <QuizReception>(); itBk = new List <GameObject>(quizReception.GetItems().ToArray()); this.GetComponent <SpriteRenderer>().sprite = mSpArea[mPhase]; for (int i = 0; i < mAnsNameOrder.Count; i++) { mNameVSPic.Add(mAnsNameOrder[i], mSpAdd[i]); } }
// Start is called before the first frame update void Start() { mBigMsg2.SetActive(false); mBigMsg.SetActive(false); tmpLayer = -1; mQuizReception = this.transform.Find("Area").GetComponent <QuizReception>(); for (int i = 0; i < mNPCinOrder.Count; i++) { var obj = mNPCinOrder[i]; mNPCs.Add(new NPC(obj, false, char.Parse((i + 1).ToString()))); } }
// Start is called before the first frame update void Start() { isSolved = false; mEnding = FindObjectOfType <Ending>(); Debug.Assert(mEnding != null); mQuizReception = this.transform.Find("Area").GetComponent <QuizReception>(); Debug.Assert(mQuizReception != null); var childPieces = this.transform.Find("Pieces"); mStillNeedCnt = mAnsCnt = childPieces.childCount; for (int i = 0; i < mAnsCnt; i++) { var piece = childPieces.GetChild(i).gameObject; mAnsPositions.Add(piece.name, piece.transform.position); piece.SetActive(false); } }
// Start is called before the first frame update void Start() { mQuizReception = this.transform.Find("Area").GetComponent <QuizReception>(); mResolved = false; mCurrPosition = mButtun = mButtunLine.transform.localPosition; foreach (var buttom in mButtoms) { string spriteName = buttom.name.Replace("bottun", "band"); Debug.Log(mResourcePath + "/" + spriteName); var sp = Instantiate(Resources.Load <Sprite>(mResourcePath + "/" + spriteName)) as Sprite; mButtomsVSSprite.Add(buttom, sp); } //foreach(var pairs in mButtomsVSSprite) //{ // Debug.Log(pairs.Key.name + " : " + pairs.Value.name); // Debug.Log(pairs.Key.GetComponent<Collider2D>()); //} }
// Start is called before the first frame update void Start() { mQuizReception = this.transform.Find("Area").GetComponent <QuizReception>(); mSpR = this.transform.Find("Area").GetComponent <SpriteRenderer>(); RESOURCES_PATH += "/wire_"; foreach (var button in mBtns) { Debug.Log(RESOURCES_PATH + button.name.ToLower()); var rs = Resources.Load <Sprite>(RESOURCES_PATH + button.name); var sp = Instantiate(rs) as Sprite; var rs2 = Resources.Load <Sprite>(RESOURCES_PATH + button.name + "_wire"); var sp2 = Instantiate(rs2) as Sprite; Debug.Log(RESOURCES_PATH + button.name); mBtnVSSp.Add(button, sp); mSpVSPic.Add(sp, sp2); } mCurrSp = mBtnVSSp[mBtns[4]]; // last for orig }
// Start is called before the first frame update void Start() { //mEnding = FindObjectOfType<Ending>(); mQuizReception = GetComponent <QuizReception>(); Debug.Assert(mQuizReception != null); }