예제 #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));
 }
예제 #2
0
		public SingleActionRecord()
		{
			fighterInfo = new SingleFighterRecord();
		}
예제 #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;
 }