void Start if Testlevels Count GetLevelsForNextScen startLevelCameraPo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
void Start()
{
if (Testlevels.Count == 1)
{
GetLevelsForNextScene();
}
startLevelCameraPosition = new Vector3(Camera.transform.position.x, Camera.transform.position.y, Camera.transform.position.z);
isLevelsOverSceneEnabled = false;
isGameEnded = false;
CreateGameArea();
Physics.IgnoreLayerCollision(0, 8);
Physics.IgnoreLayerCollision(13, 8);
}