// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //transform cash cashTransform = transform; //maincontroller mainCtr = GameObject.Find("fld_mainController"); mc = mainCtr.GetComponent <fld_mainController> (); //score score = GameObject.Find("scoreDisp"); score_s = GameObject.Find("scoreDisp_shadow"); scoretxt = score.GetComponent <Text> (); scoretxt_s = score_s.GetComponent <Text> (); //status message statusMsg = GameObject.Find("fld_status"); statusMsg_s = GameObject.Find("fld_status_shadow"); cashText_statusMsg = statusMsg.GetComponent <Text> (); cashText_statusMsg_s = statusMsg_s.GetComponent <Text> (); //sub message subMsg = GameObject.Find("subMessage"); subMsg_s = GameObject.Find("subMessage_shadow"); cashText_subMsg = subMsg.GetComponent <Text> (); cashText_subMsg_s = subMsg_s.GetComponent <Text> (); //sub message altMsg = GameObject.Find("alertMessage"); altMsg_s = GameObject.Find("alertMessage_shadow"); cashText_altMsg = altMsg.GetComponent <Text> (); cashText_altMsg_s = altMsg_s.GetComponent <Text> (); //pokebell img pokeImg = GameObject.Find("fld_pokeimg"); pokeImg.SetActive(false); //pokebell blink count pblink = false; pblinkCnt = 0; //sub message disp time submsgtime = 0; //field and battle data init cmn_staticData.Instance.fld_initCmnData(); //field data init cmn_staticData.Instance.timebonus = 10000; //set status message this.setStatusMessage(); }
// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //maincontroller mcttl = null; mcfld = null; mcbtl = null; mcrst = null; mcedg = null; sceneName = SceneManager.GetActiveScene().name; if (sceneName == "titleScene") { mainCtr = GameObject.Find("ttl_mainController"); mcttl = mainCtr.GetComponent <ttl_mainController> (); } else if (sceneName == "fieldScene") { mainCtr = GameObject.Find("fld_mainController"); mcfld = mainCtr.GetComponent <fld_mainController> (); } else if (sceneName == "battleScene") { mainCtr = GameObject.Find("btl_mainController"); mcbtl = mainCtr.GetComponent <btl_mainController> (); } else if (sceneName == "resultScene") { mainCtr = GameObject.Find("rst_mainController"); mcrst = mainCtr.GetComponent <rst_mainController> (); } else if (sceneName == "endingScene") { mainCtr = GameObject.Find("edg_mainController"); mcedg = mainCtr.GetComponent <edg_mainController> (); } //screen mask scrMask = GameObject.Find("screenMask"); // cashRectTransform_scrMask = scrMask.GetComponent<RectTransform> (); cashImage_scrMask = scrMask.GetComponent <Image> (); //local //mode scrmode = scrmd_idle; //fade in / out fadecnt = 255.0f; //init screen color cashImage_scrMask.color = (new Color(0.0f, 0.0f, 0.0f, (fadecnt / 255.0f))); }
// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //transform cash cashTransform = transform; //rigidbody cash cashRigidbody = GetComponent <Rigidbody>(); //main controller mainCtr = GameObject.Find("fld_mainController"); mc = mainCtr.GetComponent <fld_mainController> (); //jk controller kuriCtr = GameObject.Find("fld_f05_blazer_020_h"); krc = kuriCtr.GetComponent <fld_kuriController> (); anim = kuriCtr.GetComponent <Animation> (); //target mark fld_targetMark = GameObject.Find("fld_targetMark"); targetMarkTxt = fld_targetMark.GetComponent <Text> (); cashRectTransform_targetMarkTxt = targetMarkTxt.GetComponent <RectTransform> (); //input duringInput = false; duringLongTap = false; tapCnt = 0; startMpos = new Vector2(0, 0); //state // inputFirst = true; inputFirst = false; //collision hiariColl = false; //move movseq = movwakeup; movcnt = 0; //action anim.CrossFade("idle_11", 0); //sound sdcnt1 = 0; }
// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //transform cash cashTransform = transform; //rigidbody cash cashRigidbody = GetComponent <Rigidbody>(); //camera controller cameraCtr = Camera.main.GetComponent <fld_cameraController>(); //maincontroller mainCtr = GameObject.Find("fld_mainController"); mc = mainCtr.GetComponent <fld_mainController> (); //ant controller antCtr = GameObject.Find("fld_fire-ant"); atc = antCtr.GetComponent <fld_antController> (); //playercontroller playerCtr = GameObject.Find("fld_playerController"); plc = playerCtr.GetComponent <fld_playerController> (); //move movseq = movwakeup; movcnt = 0; thinkwait = 0; rotatecnt = 0; rotatedir = 0; //rotate ytdir = 0.0f; ycdir = 0.0f; xdir = 0.0f; zdir = 0.0f; //fix initial pos //(set from parent) //action actseq = 0; actcnt = 0; }
// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //transform cash cashTransform = transform; //maincontroller mainCtr = GameObject.Find("fld_mainController"); mc = mainCtr.GetComponent <fld_mainController> (); //local //effects shakeCnt_xz = 0; shakeCnt_y = 0; }
// Use this for initialization void Start() { //system init intervalCnt = 0; //cash //transform cash cashTransform = transform; //maincontroller mainCtr = GameObject.Find("fld_mainController"); mc = mainCtr.GetComponent <fld_mainController> (); //playercontroller playerCtr = GameObject.Find("fld_playerController"); plc = playerCtr.GetComponent <fld_playerController> (); //hiaricontroller // hiariCtr = GameObject.Find ("fld_hiariController"); // hac = hiariCtr.GetComponent<fld_hiariController> (); //move tcdist = cdzoomup; ccdist = tcdist; movseq = movidle; movcnt = 0; movdir = 270.0f; rtcnt = 0.0f; //posdir postdir = 109.0f; //target camera pos dir poscdir = 109.0f; //current camera pos dir firstposdir = true; //dir tdir = 280.0f; cdir = 280.0f; firstdir = true; //hiari info hsmove = false; }