// void Start() { //Mobile dragDistance = Screen.height * 5 / 100; //dragDistance is 5% height of the screen // scoreAndLevel = GameObject.FindGameObjectWithTag("Level").GetComponent <ScoreAndLevel>(); level = GameObject.FindGameObjectWithTag("Level").GetComponent <TetrisLevel>(); spawn = transform.parent.GetComponent <SpawnBlocks>(); moveSpeed = level.moveTime; }
private void Start() { scoreAndLevel = GetComponent <ScoreAndLevel>(); GetLevelEdges(); }