Exemplo n.º 1
0
 public void SetAttackLabel(SingleFighterRecord record)
 {
     Attack = record.getIntProp(RoleAProperty.ATK);
     Restore = record.getIntProp(RoleAProperty.RECOVER);
     BaseAttackLabel.text = "" + ((FootIndex == (int)FootColorType.Pink) ? (Restore) : (Attack));
 }
Exemplo n.º 2
0
		public SingleActionRecord()
		{
			fighterInfo = new SingleFighterRecord();
		}
Exemplo n.º 3
0
 private Character GetObjectByAction(IList<Character> characterList, SingleFighterRecord action)
 {
     if (action.Index < 0 || action.Index >= characterList.Count)
     {
         Logger.LogError("[***************] Could not find character with index: " + action.Index + " in side: " + action.Side + ", character list count: " + characterList.Count);
         return null;
     }
     var monster = characterList[action.Index];
     // only find monster which is active that alive.
     return monster.gameObject.activeSelf ? monster : null;
 }