public virtual void Construct(AbilityUIConstructorInfo info) { ability = info.ability; ability.Subscribe <AbilityStateChangedMessage>(this); GetComponentInParent <IObservable <ResetMessage> >().Subscribe <ResetMessage>(this); radius = radiusMultiplier * ability.transform.parent.GetComponentInChildren <CircleCollider2D>().radius; switch (type) { case AbilityType.MOVEMENT: transform.localPosition = new Vector2(radius, 0); break; case AbilityType.GENERIC: transform.localPosition = new Vector2(-radius, 0); break; } }
public AbilityUIConstructorInfo(NotSuperAbility ability) { this.ability = ability; }
public ChargesAbilityUIConstructorInfo(NotSuperAbility ability, int numCharges) : base(ability) { this.numCharges = numCharges; }
public ChargesAbilityUIConstructorInfo(NotSuperAbility ability, int numCharges) : base(ability) { this.numCharges = numCharges; }