// Start is called before the first frame update public void Start() { countScene = GameObject.Find("CountScene").GetComponent <CountScene>(); randomSceneController(); numberRandom(); }
void Awake() { DontDestroyOnLoad(this.gameObject); canvasTime = GameObject.Find("Canvas2"); canvasTime.SetActive(false); countScene = GameObject.Find("CountScene").GetComponent <CountScene>(); }
// Start is called before the first frame update void Start() { count = GameObject.Find("CountScene").GetComponent <CountScene>(); nameController = GameObject.Find("NameObj").GetComponent <NameController>(); level = count.valueCountScene.ToString(level); Debug.Log(level); levelTxt.text = "Level : " + level; nameTxt.text = "Name : " + nameController.nameText; }
// Start is called before the first frame update void Start() { timer = GameObject.Find("Timer").GetComponent <TimerContoller>(); yellowWire = GameObject.Find("Yellow_Wire").GetComponent <YellowWire>(); blueWire = GameObject.Find("Blue_Wire").GetComponent <BlueWire>(); redWire = GameObject.Find("Red_Wire").GetComponent <RedWire>(); whiteWire = GameObject.Find("White_Wire").GetComponent <WhiteWire>(); countScene = GameObject.Find("CountScene").GetComponent <CountScene>(); randomSceneIngameHard = GameObject.Find("RndScene").GetComponent <RandomSceneIngameHard>(); corretSound = GameObject.Find("CorretSound").GetComponent <AudioSource>(); wrongSound = GameObject.Find("WrongSound").GetComponent <AudioSource>(); yellowSound = false; blueSound = false; redSound = false; whiteSound = false; }
// Start is called before the first frame update void Start() { randomController = GameObject.Find("Randomnumber_OBJ").GetComponent <RandomController>(); countScene = GameObject.Find("CountScene").GetComponent <CountScene>(); nameController = GameObject.Find("NameObj").GetComponent <NameController>(); }