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