コード例 #1
0
ファイル: Character.cs プロジェクト: ahenrique23/GameEstudo
 protected void AddPairedAttribute(AttributeType stat, PairedAttribute attribute)
 {
     pairedAttributes.Add(stat, attribute);
 }
コード例 #2
0
 private void Awake()
 {
     Health      = new PairedAttribute();
     SharedUnits = new List <FormationUnit>();
 }
コード例 #3
0
 void Awake()
 {
     Health      = new PairedAttribute(AttributeCategory.CombatStat);
     SharedUnits = new List <FormationUnit>();
 }
コード例 #4
0
ファイル: HealthBar.cs プロジェクト: ahenrique23/GameEstudo
 public void UpdateHealth(PairedAttribute health)
 {
     healthSlider.value = health.ValueRatio;
 }