Example #1
0
    // Use this for initialization
    void Awake()
    {
        charController      = GetComponent <CharacterController>();
        cameraRelativeSetup = GetComponent <CNCameraRelativeSetup>();
        joystick            = cameraRelativeSetup.joystick;

        joystick.JoystickMovedEvent += AnimateMovement;
        joystick.FingerLiftedEvent  += StoppedMoving;
    }
Example #2
0
    // Use this for initialization
    void Awake()
    {
        charController = GetComponent<CharacterController>();
        cameraRelativeSetup = GetComponent<CNCameraRelativeSetup>();
        joystick = cameraRelativeSetup.joystick;

        joystick.JoystickMovedEvent += AnimateMovement;
        joystick.FingerLiftedEvent += StoppedMoving;
    }