Table of Contents
Behavior extensions for projectiles
public static class ProjectileBehaviorExt
Inheritance System.Object ProjectileBehaviorExt
Add a Behavior to this
public static void AddProjectileBehavior<T>(this Projectile projectile, T behavior)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
behavior
T
Return the first Behavior of type T
public static T GetProjectileBehavior<T>(this Projectile projectile)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetProjectileBehaviors<T>(this Projectile projectile)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasProjectileBehavior<T>(this Projectile projectile, out T item)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
item
T
Check if this has a specific Behavior
public static bool HasProjectileBehavior<T>(this Projectile projectile)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
Remove the first Behavior of type T
public static void RemoveProjectileBehavior<T>(this Projectile projectile, T behavior)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
behavior
T
Remove the first Behavior of Type T
public static void RemoveProjectileBehavior<T>(this Projectile projectile)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile
Remove all Behaviors of type T
public static void RemoveProjectileBehaviors<T>(this Projectile projectile)
where T : ProjectileBehavior;
T
projectile
Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile