Esempio n. 1
0
    public static void CreateCameraController()
    {
        GameObject camObj = new GameObject("GeneratorCameraController");
        GeneratorCameraController camCon = camObj.AddComponent <GeneratorCameraController>();

        camCon.AddCameras(2);
        camCon.AddAllGenControllersInScene();
        camCon.AlignCamerasWithGenerators();
        Selection.activeGameObject = camObj;
    }
Esempio n. 2
0
 private void OnEnable()
 {
     _camController = (GeneratorCameraController)target;
     UpdateCameraTabs();
 }