private void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; canvas = GameObject.FindGameObjectWithTag("mainCanvas"); dataScript = canvas.GetComponent <DataLogging>(); signCounter = GameObject.FindGameObjectWithTag("sign count").transform; hospitalLightScript = player.GetComponent <HospitalLight>(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; signCounter = GameObject.FindGameObjectWithTag("sign count").transform; ballCounter = GameObject.FindGameObjectWithTag("ball count").transform; startTime = Time.time; mailData = new List <string>(); throwDistractionScript = Camera.main.GetComponent <ThrowDistraction>(); hospitalLightScript = player.GetComponent <HospitalLight>(); }
// Use this for initialization void Start() { panicScript = GetComponent <PanicTrigger>(); whistleScript = GetComponent <PlayerWhistle>(); player = GameObject.FindGameObjectWithTag("Player").transform; city = GameObject.FindGameObjectWithTag("city").transform; getExitScript = city.GetComponent <MonsterSpawner>(); hospitalLightScript = player.GetComponent <HospitalLight>(); setState(); }