Exemplo n.º 1
0
    void Start()
    {
        if (!playerInput) {
            playerInput = gameObject.GetComponent<PlayerInput>();
        }

        if (!attachToSurface) {
            attachToSurface = gameObject.GetComponent<AttachToSurface>();
        }
    }
Exemplo n.º 2
0
    void Start()
    {
        if (!playerInput)
        {
            playerInput = gameObject.GetComponent <PlayerInput>();
        }

        if (!attachToSurface)
        {
            attachToSurface = gameObject.GetComponent <AttachToSurface>();
        }
    }
Exemplo n.º 3
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>();
        }
    }
Exemplo n.º 4
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;
    }
Exemplo n.º 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>();
        }
    }
Exemplo n.º 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);
    }
Exemplo n.º 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;
        }
    }
Exemplo n.º 8
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);
    }