Beispiel #1
0
    private float spaceBetweenSquares = 2.5f;   // the distance between the centers of squares on the game board


    void Start()
    {
        rb           = GetComponent <Rigidbody>();
        gameManagerX = GameObject.Find("Game Manager").GetComponent <GameManagerX5>();

        transform.position = RandomSpawnPosition();
        StartCoroutine(RemoveObjectRoutine()); // begin timer before target leaves screen
    }
    // Start is called before the first frame update
    void Start()
    {
        gameManagerX = GameObject.Find("Game Manager").GetComponent <GameManagerX5>();
        button       = GetComponent <Button>();
        button.onClick.AddListener(SetDifficulty);

        //Debug.Log("start, isPaused: " + _pause.isPaused);
        //Debug.Log(!_pause.isPaused + " == true");
    }