Exemplo n.º 1
0
    private int determine_defense_dmg_with_preview(Unit preview_unit = null)
    {
        List <Attack> atts = get_unit().is_playerunit ?
                             AttackQueuer.I.get_enemy_queue().get_incoming_attacks(get_unit()) :
                             AttackQueuer.I.get_player_queue().get_incoming_attacks(get_unit());

        return(AttackQueuer.calc_final_group_defense_reduction(atts, preview_unit));
    }
Exemplo n.º 2
0
 void Awake()
 {
     if (I == null)
     {
         I = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }