Ejemplo n.º 1
0
    public void SavePhaseRecord()
    {
        SkillTargetRecord newRecord = new SkillTargetRecord();

        newRecord.targets  = targets.Select(x => x.content).ToArray();
        newRecord.phaseNum = phaseIndex;
        newRecord.effect   = phaser.GetComponent <Effect>();

        records.Add(newRecord);
        Debug.Log("Records: " + records.Count);
    }
Ejemplo n.º 2
0
 void RenderResults(List <SkillTargetRecord> records)
 {
     for (int i = 0; i < records.Count; i++)
     {
         SkillTargetRecord record = records[i];
         Debug.Log("Record: " + record.phaseNum);
         string targetNames = "";
         for (int j = 0; j < record.targets.Length; j++)
         {
             targetNames = string.Format("{0} , {1}", targetNames, record.targets[j].ToString());
         }
         Debug.Log("Targets: " + targetNames);
         Debug.Log("Effect: " + record.effect);
     }
 }