示例#1
0
    //

    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;
    }
示例#2
0
 private void Start()
 {
     scoreAndLevel = GetComponent <ScoreAndLevel>();
     GetLevelEdges();
 }