コード例 #1
0
    public ArtifactData(ArtifactExcelData artifactExcelData)
    {
        Id               = artifactExcelData.Id;
        Name             = artifactExcelData.Name;
        ArtifactPieceIds = artifactExcelData.ArtifactPieceIds;
        InitializeEnemyIds();

        AbilityData = new AbilityData();
        AbilityData.SetAbilityData(artifactExcelData);

        Image = Resources.Load <Sprite>(artifactExcelData.ImagePath);
    }
コード例 #2
0
 public void SetAbilityData(ArtifactExcelData artifactExcelData)
 {
     Attack        = artifactExcelData.Attack;
     MagicalAttack = artifactExcelData.MagicalAttack;
     Health        = artifactExcelData.Health;
     Defence       = artifactExcelData.Defence;
     MagicDefence  = artifactExcelData.MagicDefence;
     Shield        = artifactExcelData.Shield;
     Accuracy      = artifactExcelData.Accuracy;
     Evasion       = artifactExcelData.Evasion;
     Critical      = artifactExcelData.Critical;
     AttackSpeed   = artifactExcelData.AttackSpeed;
 }