コード例 #1
0
 protected override void Awake()
 {
     isActive                = true; // initialize abilities to be active
     targetingSystem         = new WeaponTargetingSystem();
     targetingSystem.ability = this;
     if (abilityName == null)
     {
         abilityName = "Weapon Ability";
     }
 }
コード例 #2
0
 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;
 }