Esempio n. 1
0
 public PlayerController(int ctrNum, int carNum, int pNum, Transform spawnP, GameObject cam, WorldScript _world)
 {
     world         = _world;
     playerNum     = pNum;
     controllerNum = ctrNum;
     whichCar      = carNum;
     spawnPoint    = spawnP;
     cameraFab     = cam;
     ui            = new UIScript(world.UIs[0], ctrNum, this, world.players.Count);
     //currentChunk = startChunk;
     initCar();
     powerballManager = new PowerballManager(carScript.PowerBall, this);
 }
Esempio n. 2
0
 public PlayerController(int ctrNum, int carNum, int pNum, Transform spawnP, GameObject cam, WorldScript _world)
 {
     world = _world;
     playerNum = pNum;
     controllerNum = ctrNum;
     whichCar = carNum;
     spawnPoint = spawnP;
     cameraFab = cam;
     ui = new UIScript(world.UIs[0],ctrNum,this,world.players.Count);
     //currentChunk = startChunk;
     initCar();
     powerballManager = new PowerballManager(carScript.PowerBall, this);
 }