Table of Contents
Behavior extensions for attacks
public static class AttackBehaviorExt
Inheritance System.Object AttackBehaviorExt
Add a Behavior to this
public static void AddAttackBehavior<T>(this Attack attack, T behavior)
where T : AttackBehavior;
T
The Behavior you want to add
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
behavior
T
Return the first Behavior of type T
public static T GetAttackBehavior<T>(this Attack attack)
where T : AttackBehavior;
T
The Behavior you want
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetAttackBehaviors<T>(this Attack attack)
where T : AttackBehavior;
T
The Behavior you want
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasAttackBehavior<T>(this Attack attack, out T item)
where T : AttackBehavior;
T
The Behavior you're checking for
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
item
T
The returned item, if it exists
Check if this has a specific Behavior
public static bool HasAttackBehavior<T>(this Attack attack)
where T : AttackBehavior;
T
The Behavior you're checking for
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
Remove the first Behavior of type T
public static void RemoveAttackBehavior<T>(this Attack attack, T behavior)
where T : AttackBehavior;
T
The Behavior you want to remove
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
behavior
T
Remove the first Behavior of Type T
public static void RemoveAttackBehavior<T>(this Attack attack)
where T : AttackBehavior;
T
The Behavior you want to remove
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack
Remove all Behaviors of type T
public static void RemoveAttackBehaviors<T>(this Attack attack)
where T : AttackBehavior;
T
The Behavior you want to remove
attack
Il2CppAssets.Scripts.Simulation.Towers.Behaviors.Attack.Attack