public void SetAttackLabel(SingleFighterRecord record) { Attack = record.getIntProp(RoleAProperty.ATK); Restore = record.getIntProp(RoleAProperty.RECOVER); BaseAttackLabel.text = "" + ((FootIndex == (int)FootColorType.Pink) ? (Restore) : (Attack)); }
public SingleActionRecord() { fighterInfo = new SingleFighterRecord(); }
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; }