Ejemplo n.º 1
0
    private void Start()
    {
        control_script = GetComponent <ShipControl>();
        UIScript       = SceneGlobals.ui_script;

        ship      = control_script.myship;
        cam       = GameObject.Find("ShipCamera").GetComponent <Camera>();
        mapcam_mv = SceneGlobals.map_camera.GetComponent <MapCameraMouvement>();

        act_thrust  = 1;
        act_angular = 1;

        Switch_Camera(act_cam_num);
        keys = Globals.bindings;
    }
Ejemplo n.º 2
0
    private void Start()
    {
        Camera camera_component = GetComponent <Camera>();

        camera_component.farClipPlane = 1e9f;

        transform.position = new Vector3(0, 0, -20);
        scroll_pos         = 1;

        transform.forward = PivotPoint - transform.position;
        Debug.DrawRay(transform.position, PivotPoint - transform.position, Color.white, 100);

        bef_pivot_point = PivotPoint;

        active = this;
    }