ChensGradiusMod
Chen.GradiusMod.Items.GradiusOption.GradiusOption
GradiusOption.FireForAllOptions(CharacterBody, Action<GameObject,OptionBehavior,GameObject,Vector3>) Method
Loops through all the Options of the minion. The action has 4 useful parameters to use.
The first parameter refers to the Option/Multiple itself. It is a GameObject.
The second parameter refers to the OptionBehavior component in the Option/Multiple.
The third parameter refers to the target of the Option/Multiple owner. It is also a GameObject.
The last parameter refers to the direction from the option to the target. It is a normalized Vector3.
public void FireForAllOptions(CharacterBody optionOwner, System.Action<GameObject,Chen.GradiusMod.Items.GradiusOption.Components.OptionBehavior,GameObject,Vector3> actionToRun);
Parameters
optionOwner
RoR2.CharacterBody
The owner of the option.
actionToRun
System.Action<UnityEngine.GameObject,OptionBehavior,UnityEngine.GameObject,UnityEngine.Vector3>
An action to execute for each Option. The inputs are as follows:
GameObject option, OptionBehavior behavior, GameObject target, Vector3 direction.