public void act() { if (behave != null && equipped) { //behave.startPos = player.carScript.transform.position + Vector3.up; behave.startPos = new Vector3(0, 3, 0); behave.act(); } }
// Update is called once per frame void Update() { if (!hasBall) { noBallTimer++; if (noBallTimer > spawnTime) { spawn(); noBallTimer = 0; } } else { pBallScr.act(); } }