Table of Contents
Extensions for getting bloon behaviors
public static class BloonBehaviorExt
Inheritance System.Object BloonBehaviorExt
Add a Behavior to this
public static void AddBloonBehavior<T>(this Bloon bloon, T behavior)
where T : BloonBehavior;
T
The Behavior you want to add
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
behavior
T
Return the first Behavior of type T
public static T GetBloonBehavior<T>(this Bloon bloon)
where T : BloonBehavior;
T
The Behavior you want
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBloonBehaviors<T>(this Bloon bloon)
where T : BloonBehavior;
T
The Behavior you want
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasBloonBehavior<T>(this Bloon bloon, out T item)
where T : BloonBehavior;
T
The Behavior you're checking for
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
item
T
The found item, if any
Check if this has a specific Behavior
public static bool HasBloonBehavior<T>(this Bloon bloon)
where T : BloonBehavior;
T
The Behavior you're checking for
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
Remove the first Behavior of type T
public static void RemoveBloonBehavior<T>(this Bloon bloon, T behavior)
where T : BloonBehavior;
T
The Behavior you want to remove
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
behavior
T
Remove the first Behavior of Type T
public static void RemoveBloonBehavior<T>(this Bloon bloon)
where T : BloonBehavior;
T
The Behavior you want to remove
bloon
Il2CppAssets.Scripts.Simulation.Bloons.Bloon
Remove all Behaviors of type T
public static void RemoveBloonBehaviors<T>(this Bloon bloon)
where T : BloonBehavior;
T
The Behavior you want to remove