protected override void Awake() { isActive = true; // initialize abilities to be active targetingSystem = new WeaponTargetingSystem(); targetingSystem.ability = this; if (abilityName == null) { abilityName = "Weapon Ability"; } }
public void Init(WeaponTargetingSystem targetingSystem, Entity core, float range, ShellPart part, int tier) { this.targetingSystem = targetingSystem; this.Core = core; initialized = true; this.range = range; this.part = part; this.tier = tier; energyCost = energyC / tier; }