Exemple #1
0
 void Start()
 {
     mg    = GameObject.Find("GameManager").GetComponent <InGameManager>();
     child = GetComponentsInChildren <Transform>();
     grid  = GameObject.Find("Grid").GetComponent <GridBuilter>();
     InvokeRepeating("DropBlock", 1.2f, 1.2f);
 }
 void Start()
 {
     grid = GameObject.Find("Grid").GetComponent <GridBuilter>();
     Ed   = GameObject.Find("EndGame").GetComponent <EndGame>();
     Invoke("RandomBlock", 1);
 }