MOST Aim
BE UPDATED SOON...
API reference
All public properties can be updated at runtime, and the changes will be set immediately.
// Functions
// main behavior enables or disables the system
Most_Aim.EnableState(bool Enable);
__________________ Activate/Start __________________
// Start Aiming function, call it to enable/start moving
// OnInputDetected() Call it if the input doesn't provide direction yet
// example.. when touching the screen without moving the finger... On Touch began only
// This function will start aiming towards the character's current rotation
Most_Aim.OnInputDetected();
// OnExeedMinRange() Call it if the input already provides direction
// This function will start aiming toward the input direction
Most_Aim.OnExeedMinRange(Vector2 direction);
// You have to call one of these functions to start aiming
__________________ Direction Update __________________
// Call it to update the aim direction // on direction updated
// OnInputUpdated() Uses the absolute value of the input direction, magnitude equal to 1
Most_Aim.OnInputUpdated(Vector2 direction);
// OnRawValueUpdated() Uses the magnitude value of the input direction, magnitude from 0 to 1
Most_Aim.OnRawValueUpdated(Vector2 direction);
// There are a lot uof se cases for each one of these update functions
// see MOST Controller and MOST Aim examples
__________________ On Stop Aiming __________________
// the default value for exceed = false
Most_Aim.OnInputReleased([Optional] bool exceed);
// Call it to stop the aim system // on release
__________________ AutoAim Control __________________
// enables or disables the AutoAim system
Most_Aim.AutoAimControl(bool enable);
//_______________________________________________________________//
// ReadOnly variable... Check if the Move system is active or not
Most_Aim.Enable; return bool
MOST_Aim properties and attributes vary depending on the selected aim type and ray system
You will find all of it inside MOST_Aim.cs
Last updated