Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     satuKedua       = GameObject.Find("Main Camera");
     kameraScript    = satuKedua.GetComponent <ButtonGame> ();
     satuKeduaScript = satuKedua.GetComponent <checkLine> ();
     satuKeduaText   = gameObject.GetComponent <Text> ();
 }
Exemplo n.º 2
0
 // 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";
 }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
 /// <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);
     }
 }