// Use this for initialization void Start() { ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); pa = GameObject.FindGameObjectWithTag("Player").GetComponent <playerAttack> (); //setInfo (); }
// Use this for initialization void Start() { animation_wolf = GetComponent <Animation> (); normal = body.GetComponent <Renderer> ().material.color; target = GameObject.FindGameObjectWithTag("Player").transform; ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); }
void Start() { nowParent = transform.parent; EquipAndBag_Grid now = nowParent.gameObject.GetComponent <EquipAndBag_Grid> (); this.id = now.id; this.count = now.num; ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); }
void Awake() { _instance = this; ps = this.GetComponent <playerstatus>(); animation = GetComponent <Animation> (); normal = body.GetComponent <Renderer> ().material.color; pa = this.GetComponent <playerAnimation> (); foreach (GameObject go in efxArray) { efxDict.Add(go.name, go); } }
private void Awake() { _instance = this; move = this.GetComponent <playermove>(); ps = this.GetComponent <playerstatus>(); nomals = normal.material.color; hudtxtFollow = transform.Find("HUDtext").gameObject; foreach (GameObject go in efxArray) { efxdict.Add(go.name, go); } }
private void Start() { //hudtextGo= GameObject.Instantiate(hudtextprefab, Vector3.zero, Quaternion.identity) as GameObject; //hudtextGo.transform.parent = HUDTextParent._instance.gameObject.transform; hudtextGo = NGUITools.AddChild(HUDTextParent._instance.gameObject, hudtextprefab); hudtext = hudtextGo.GetComponent <HUDText>(); followtarget = hudtextGo.GetComponent <UIFollowTarget>(); followtarget.target = hudtextFollow.transform; followtarget.gameCamera = Camera.main; //followtarget.uiCamera = UICamera.current.GetComponent<Camera>(); //followtarget.uiCamera=transform.parent.FindChild("Camer").GetComponent<Camera>(); ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>(); }
// Use this for initialization void Start() { ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); num_text = transform.parent.Find("shortcutkey").GetComponent <Text> (); num = int.Parse(num_text.text); switch (num) { case 1: ky = KeyCode.Alpha1; break; case 2: ky = KeyCode.Alpha2; break; case 3: ky = KeyCode.Alpha3; break; case 4: ky = KeyCode.Alpha4; break; case 5: ky = KeyCode.Alpha5; break; case 6: ky = KeyCode.Alpha6; break; case 7: ky = KeyCode.Alpha7; break; case 8: ky = KeyCode.Alpha8; break; case 9: ky = KeyCode.Alpha9; break; } }
// Use this for initialization void Start() { instance = this; ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); hero = ps.hero; skillShow(); /* * ps = GameObject.FindGameObjectWithTag ("Player").GetComponent<playerstatus> (); * skillui = this.GetComponentsInChildren<SkillUI> (); * if (ps.hero == herotype.magician) { * * }else if(ps.hero == herotype.swordman){ * int temp = 5001; * foreach (SkillUI i in skillui) { * i.id = temp++; * } * }*/ }
private void Start() { ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>(); int[] idlist = null; switch (ps.heroType) { case HeroType.Megiclan: idlist = magicianSkillIdList; break; case HeroType.Swordman: idlist = swordmanSkillIdList; break; } foreach (int id in idlist) { GameObject itemGo = NGUITools.AddChild(grid.gameObject, skillitemPrefab); grid.AddChild(itemGo.transform); itemGo.GetComponent <skillitem>().Setld(id); } }
void Start() { ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> (); }
private void Start() { ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>(); pa = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerattack>(); }
void Start() { status = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus>(); d = dialog.GetComponent <Dialog>(); }
void Start() { targets = GameObject.FindGameObjectWithTag("Player").gameObject; ps = targets.GetComponent <playerstatus> (); }
private void Start() { ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>(); UpdateShow(); }
void Start() { status = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>(); auds = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { ps = GetComponent <playerstatus> (); animation = GetComponent <Animation>(); attack = GetComponent <playerAttack> (); }