Table of Contents
Behavior extensions for Towers
public static class TowerBehaviorExt
Inheritance System.Object TowerBehaviorExt
Add a Behavior to this
public static void AddTowerBehavior<T>(this Tower tower, T behavior)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
behavior
T
Return the first Behavior of type T
public static T GetTowerBehavior<T>(this Tower tower)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetTowerBehaviors<T>(this Tower tower)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasTowerBehavior<T>(this Tower tower, out T item)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
item
T
Check if this has a specific Behavior
public static bool HasTowerBehavior<T>(this Tower tower)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
Remove the first Behavior of type T
public static void RemoveTowerBehavior<T>(this Tower tower, T behavior)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
behavior
T
Remove the first Behavior of Type T
public static void RemoveTowerBehavior<T>(this Tower tower)
where T : TowerBehavior;
T
tower
Il2CppAssets.Scripts.Simulation.Towers.Tower
Remove all Behaviors of type T
public static void RemoveTowerBehaviors<T>(this Tower tower)
where T : TowerBehavior;
T