// Use this for initialization void Awake() { barImg = transform.Find("bar").GetComponent <Image>(); caseImg = transform.Find("case").GetComponent <Image>(); indicator = transform.Find("indicator").GetComponent <RectTransform>(); cageScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); indicatorMovingRange = maxIndicatorMoving - minIndicatorMoving; }
// Use this for initialization void Awake() { targetTracer = transform.Find("targetTracer").gameObject; targetTracer.SetActive(false); //aimProjector = targetTracer.GetComponent<Projector>(); //aimProjector.enabled = false; cageScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); shooter = Resources.Load <Transform>("shooter"); }
// Use this for initialization void Awake() { fallingSpeed *= Time.deltaTime; curFallingSpeed *= Time.deltaTime; landingParticle = transform.Find("landingParticle").GetComponent <ParticleSystem>(); destroyParticlePos = transform.Find("destroyParticlePos"); cageScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); audioS = GetComponent <AudioSource>(); talk = transform.Find("Talk/content").GetComponent <TextMeshProUGUI>(); }
// Use this for initialization public void Awake() { model = transform.Find("model"); armCtrl = model.Find("armCtrl"); bodyRb = GetComponent <Rigidbody>(); cageScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); cageScript.Register(volume); nextMoveTime = Time.time + Random.Range(minMoveInterval, maxMoveInterval); bloodParticlePos = transform.Find("bloodParticlePos"); audio = GetComponents <AudioSource>(); }
// Use this for initialization void Awake() { humanSpawnScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); addHumanBut = transform.Find("mainCameraUI/addHuman").GetComponent <Button>(); cageScript = GameObject.Find("Cage").GetComponent <cageCtrl>(); }