Ejemplo n.º 1
0
 public void SpawnBall()
 {
     spawnDirection = GenRandomDirection();
     currentBall    = Instantiate(ballPrefab, this.transform.position, Quaternion.identity);
     currentBall.GetComponent <Ball>().SetForceAndDirection(spawnForce, spawnDirection);
     spawnForce += forceIncrement;
     enemy.SetBallInGame(currentBall.transform);
     gameLogicManager.SetBallInGame(currentBall);
 }