// Use this for initialization void Start() { cansee = false; death = GameObject.FindGameObjectWithTag("Death"); mon = GameObject.Find("Moniter"); scrp = mon.GetComponent <ScoreScript> (); hpber = GameObject.Find("HPber_front"); hpbs = hpber.GetComponent <HPberScript> (); }
// Use this for initialization void Start() { GMsp.SetActive(false); GRes.SetActive(false); hpb = GameObject.Find("HPber_front"); hpbsc = hpb.GetComponent <HPberScript> (); maincam = GameObject.Find("Main Camera"); FBsc = maincam.GetComponent <FlashBoardScript> (); monit = GameObject.Find("Moniter"); scosc = monit.GetComponent <ScoreScript> (); }