ChensGradiusMod
Chen.GradiusMod.Items.GradiusOption.Components
OptionBehavior Class
A component attached to the Options/Multiples for their behavioral functions.
public class OptionBehavior
Inheritance UnityEngine.MonoBehaviour 🡒 OptionBehavior
Fields | Â |
---|---|
numbering | The number that represents the identification of the Option scoped under the owner. |
objectData | Useful for native objects or class instances that needs to be saved from one state to another of the owner. Utilizing this means that one does not need to create and attach a component for storing these objects. Casting is required when the object is accessed. |
owner | The Character Body Game Object of this Option’s owner. |
unityData | Useful for storing prefabs, components, scriptable objects that needs to be saved from one state to another of the owner. Utilizing this means that one does not need to create and attach a component for storing these objects. Using this dictionary allows objects here to be checked using the Unity way. |
Properties | Â |
---|---|
O | Shorthand for the Object data dictionary. |
U | Shorthand for the Unity data dictionary. |
Methods | Â |
---|---|
DecidePosition(float) | Computes for the actual position of the Option based on the owner’s rotational variables and its numbering. |