Пример #1
0
    void Update()
    {
        Vector2 i = InputManager.ActiveDevice.LeftStick;
        Vector3 a = new Vector3(i.x, 0, i.y);

        a = manualCamera.rotateConsideringCamera(a);

        pigController.UpdateAccel(a);

        if (InputManager.ActiveDevice.Action1.IsPressed)
        {
            var dir = entity.vehicleAnalyzeData.front;
            breathePub.Breathe(transform.position, dir);
        }
    }
Пример #2
0
    void Update()
    {
        Vector3 a = target.position - transform.position;

        pigController.UpdateAccel(a.normalized);
    }