public ChargeAttack(ChargeAttack chargeAttack, Actor source) { startKey = chargeAttack.startKey; attackKey = chargeAttack.attackKey; /* switch (Global.attackManager.dict[source.key].Get(chargeAttack.attackKey).attackType) { case (AttackType.Melee): attack = new Melee(Global.attackManager.dict[source.key].Get(chargeAttack.attackKey) as Melee, source); break; case (AttackType.Projectile): attack = new Projectile(Global.attackManager.dict[source.key].Get(chargeAttack.attackKey) as Projectile, source); break; case (AttackType.AreaOfEffect): attack = new AreaOfEffect(Global.attackManager.dict[source.key].Get(chargeAttack.attackKey) as AreaOfEffect, source); break; }*/ //source.curAnim = chargeAttack.startKey; //source.charge_timer.Interval = chargeAttack.interval; //source.charge_timer.Start(); }