// Use this for initialization void Start() { bio = GetComponent <Biostim>(); Enemy = GameObject.FindGameObjectsWithTag("Enemy"); foreach (GameObject e in Enemy) { e.GetComponent <EnemyMili>(); } hack = GetComponentInChildren <PlayerHack>(); // state = false; s1 = Shader.Find("Standard"); s2 = Shader.Find("uSE - Refraction"); }
//RectTransform healthTrans; void Start() { damageT = new WaitForSeconds(damageTimer); anim = GetComponentInChildren <Animator>(); bio = GetComponentInParent <Biostim>(); //GameObject slidH = Instantiate(sliderPrefabH, transform.position, Quaternion.identity) as GameObject; //slidH.transform.SetParent(GameObject.FindGameObjectWithTag("Canvas").transform); //healthSlider = slidH.GetComponentInChildren<Slider>(); //healthTrans = slidH.GetComponent<RectTransform>(); ragdollUtility = GetComponentInChildren <RagdollUtility>(); //substractOnce = false; }
void Start() { anim = GetComponentInChildren <Animator>(); bio = GetComponent <Biostim>(); stats = GetComponentInChildren <CharacterStatsPlayer>(); }