private void Start()
    {
        score = 0;
        spawn = false;
        GameObject currentBird = Object.Instantiate(birdPrefab, spawnLocation.position, spawnLocation.rotation);

        slingShotLine.setCurrentBird(currentBird);
        slingShotLine.setLineRendererActive(active: true);
        birdsFired = 1;
    }
示例#2
0
    private void Start()
    {
        slingShotLine.setCurrentBird(gameObject);
        rb.constraints = RigidbodyConstraints2D.FreezeAll;
        releaseDelay   = 1 / (sj.frequency * 4);

        slingShotLine.setLineRendererActive(true);

        isPressed = false;
    }