Wolf Mobile Controller
Wolf Mobile Controller
How the Original Input works and how to add more features and make it mobile
Compatible?
Those inputs are added to Malbers Input ( You can read more about this in the original
documentation but I want to explain how to add more inputs to the mobile game ):
After adding a new feature following the asset's documentation, if it's a “State”
you have to call this code in GameReferences.cs
iinputName would be the input you set for that state in MalbersInput and isState would be true
An example:
Jump is a state
Action and Attack are modes.
PickAndDrop has it's own script and code so we don't use “ActivateAnyAction”
SlingshotController.cs
There is all the code to aim and shoot the ball and also to pivot the camera while aiming.
MFreeLookCamera.cs
That script was modified to take mobile input & PC input as well.
Which is assigned in SlingshotController.cs since it only takes the input from the joystick if you
aren't aiming, in that case, in SlingshotController.cs it's calculated the movement of the finger
to pivot the camera.
FloatingJoystick.cs
All the code there was commented since we want the joystick to be static at X position and to
not be displayed at any place. It inherits from Joystick.cs
Joystick.cs
I modified the DeadZone feature, to avoid that the joystick receives any input if you touch
inside of any place of the joystick, if DeadZone > 0, you need to drag the joystick X distance
before the Joystick taking any input.
These were the main script features, if you need help with anything just let me know!, Thanks