コード例 #1
0
ファイル: CharacterControl.cs プロジェクト: wuxin0602/Nothing
 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
ファイル: InitBattleField.cs プロジェクト: wuxin0602/Nothing
 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;
 }