Exemplo n.º 1
0
 public AbstractUnit(int damage, int defence, int weight, WeaponUnit weaponUnit,
                     List <AbstractCard.CardModifier> modifierRange, List <AbstractCard.CardTarget> targetRange,
                     AbstractCard.CardRarity rarity)
     : this(damage, defence, weight, weaponUnit, rarity)
 {
     ModifierRange = modifierRange;
     TargetRange   = targetRange;
 }
Exemplo n.º 2
0
 void Awake()
 {
     GetComponent <UIEventListener>().onClick = OnItemClick;
     GetComponent <UIEventListener>().onClick = OnItemClick;
     SC_RankingUnit    = CreatObjectToNGUI.InstantiateObj(RankingUint_prefab, RankingUnitPoint).GetComponent <RankingUnit>();
     SC_PlayerHeadUnit = CreatObjectToNGUI.InstantiateObj(PlayerHeadUnit_prefab, PlayerHeadUnitPoint).GetComponent <PlayerHeadUnit>();
     SC_WeaponUnit     = CreatObjectToNGUI.InstantiateObj(WeaponUnit_prefab, WeaponUnitPoint).GetComponent <WeaponUnit>();
     SC_ForceUnit      = CreatObjectToNGUI.InstantiateObj(ForceUnit_prefab, ForceUnitPoint).GetComponent <ForceUnit>();
     LookdetailBtn.SetCallBackFuntion(DetailBtnClick);
 }
Exemplo n.º 3
0
 public AbstractUnit(int damage, int defence, int weight, WeaponUnit weaponUnit,
                     AbstractCard.CardRarity rarity)
 {
     Damage        = damage;
     Defence       = defence;
     Weight        = weight;
     Unit          = weaponUnit;
     ModifierRange = new List <AbstractCard.CardModifier>();
     TargetRange   = new List <AbstractCard.CardTarget>();
     Rarity        = rarity;
 }