static WorldCameraManager()
 {
     WorldCameraManager.WorldLayerName       = "World";
     WorldCameraManager.WorldLayerMask       = LayerMask.GetMask(WorldCameraManager.WorldLayerName);
     WorldCameraManager.WorldLayer           = LayerMask.NameToLayer(WorldCameraManager.WorldLayerName);
     WorldCameraManager.WorldSkyboxLayerName = "WorldSkybox";
     WorldCameraManager.WorldSkyboxLayerMask = LayerMask.GetMask(WorldCameraManager.WorldSkyboxLayerName);
     WorldCameraManager.WorldSkyboxLayer     = LayerMask.NameToLayer(WorldCameraManager.WorldSkyboxLayerName);
     WorldCameraManager.SkyColor             = new Color(0.0627451f, 0.09019608f, 0.117647059f);
     WorldCameraManager.worldCameraInt       = WorldCameraManager.CreateWorldCamera();
     WorldCameraManager.worldSkyboxCameraInt = WorldCameraManager.CreateWorldSkyboxCamera(WorldCameraManager.worldCameraInt);
     WorldCameraManager.worldCameraDriverInt = ((Component)WorldCameraManager.worldCameraInt).GetComponent <WorldCameraDriver>();
 }
Ejemplo n.º 2
0
 static WorldCameraManager()
 {
     WorldCameraManager.worldCameraInt       = WorldCameraManager.CreateWorldCamera();
     WorldCameraManager.worldSkyboxCameraInt = WorldCameraManager.CreateWorldSkyboxCamera(WorldCameraManager.worldCameraInt);
     WorldCameraManager.worldCameraDriverInt = WorldCameraManager.worldCameraInt.GetComponent <WorldCameraDriver>();
 }