void Start()
    {
        if (!playerInput) {
            playerInput = gameObject.GetComponent<PlayerInput>();
        }

        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }
    }
    void Start()
    {
        if (!playerInput)
        {
            playerInput = gameObject.GetComponent <PlayerInput>();
        }

        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }
    }
    // Use this for initialization
    void Start()
    {
        Screen.lockCursor = true;

        if (!cameraControl) {
            cameraControl = gameObject.GetComponent<CameraControl>();
        }
        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }

        if (!jetPackStabilize) {
            jetPackStabilize = gameObject.GetComponent<JetPackStabilize>();
        }
    }
    void Start()
    {
        if (!playerInput) {
            playerInput = gameObject.GetComponent<PlayerInput>();
        }

        if (!playerCamera) {
            playerCamera = Camera.main.transform;
        }

        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }

        if (cameraMode == 1)
            playerCamera.parent = null;
    }
Exemple #5
0
    // Use this for initialization
    void Start()
    {
        Screen.lockCursor = true;

        if (!cameraControl)
        {
            cameraControl = gameObject.GetComponent <CameraControl>();
        }
        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }

        if (!jetPackStabilize)
        {
            jetPackStabilize = gameObject.GetComponent <JetPackStabilize>();
        }
    }
Exemple #6
0
    void Start()
    {
        if (!playerInput)
        {
            playerInput = gameObject.GetComponent <PlayerInput>();
        }

        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }

        if (!playerCamera)
        {
            playerCamera = Camera.main.transform;
        }

        pidControllerX = new PIDController(pGainX, iGainX, dGainX);
        pidControllerY = new PIDController(pGainY, iGainY, dGainY);
        pidControllerZ = new PIDController(pGainZ, iGainZ, dGainZ);
    }
Exemple #7
0
    void Start()
    {
        if (!playerInput)
        {
            playerInput = gameObject.GetComponent <PlayerInput>();
        }

        if (!playerCamera)
        {
            playerCamera = Camera.main.transform;
        }

        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }

        if (cameraMode == 1)
        {
            playerCamera.parent = null;
        }
    }
    void Start()
    {
        if (!playerInput) {
            playerInput = gameObject.GetComponent<PlayerInput>();
        }

        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }

        if (!playerCamera) {
            playerCamera = Camera.main.transform;
        }

        pidControllerX = new PIDController(pGainX, iGainX, dGainX);
        pidControllerY = new PIDController(pGainY, iGainY, dGainY);
        pidControllerZ = new PIDController(pGainZ, iGainZ, dGainZ);
    }