// Use this for initialization void Start() { satuKedua = GameObject.Find("Main Camera"); kameraScript = satuKedua.GetComponent <ButtonGame> (); satuKeduaScript = satuKedua.GetComponent <checkLine> (); satuKeduaText = gameObject.GetComponent <Text> (); }
// Use this for initialization void Start() { satuKedua = GameObject.Find("Main Camera"); kameraScript = satuKedua.GetComponent <ButtonGame> (); satuKeduaScript = satuKedua.GetComponent <checkLine> (); satuKeduaText = gameObject.GetComponent <Text> (); //satuKeduaText.text="ḧuhuahdashdhasda"; }
void Awake() { Bar = transform.Find("Bar").GetComponent <BarGame>(); Button = transform.Find("Button").GetComponent <ButtonGame>(); Fog = transform.Find("Fog").GetComponent <FogScript>(); TotalScore = transform.Find("TotalScore").GetComponent <Score>(); Record = transform.Find("Record").GetComponent <Score>(); Player = GameObject.Find("Player").GetComponent <PlayerScript>(); }
/// <summary> /// Checks if is button game (need to find better way) /// </summary> /// <param name="game">What is the game that needs to be tested?</param> void IsButtonGame(ButtonGame game) { //checks if is a button game if (game != null) { game.fireSource = fire; fire.buttons.Add(game); } }