示例#1
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     if (ChangeHealth > 0)
     {
         panel.damageLabel.text = "Heal for: " + ChangeHealth.ToString();
     }
     else
     {
         panel.damageLabel.text = "Damage for: " + Mathf.Abs(ChangeHealth).ToString();
     }
 }
示例#2
0
    public void InitPreview(List <CombatNode> nodes)
    {
        maxIndex     = 0;
        currentIndex = 0;

        if (nodes == null)
        {
            return;
        }


        foreach (CombatNode n in nodes)
        {
            PreviewUIPanel p = Instantiate <PreviewUIPanel>(prevPrefab, this.transform);
            previews.Add(p);
            p.InitText(n);
            p.gameObject.SetActive(false);

            maxIndex++;
        }

        maxIndex--;

        if (previews.Count == 0)
        {
            return;
        }


        for (int i = 0; i <= maxIndex; i++)
        {
            previews[i].UpdateIndex(i + 1, maxIndex + 1);
        }

        DisplayCurrentPreview();
    }
示例#3
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     //throw new System.NotImplementedException();
 }
示例#4
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Add Event";
 }
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     base.UpDatePreview(panel);
 }
示例#6
0
    public override void UpDatePreview(PreviewUIPanel panel)
    {
        int x = target.GetMaxStats(StatTypes.Health) / 2;

        panel.damageLabel.text = "Revive";
    }
示例#7
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Add interaction to tile";
 }
示例#8
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = source.actorData.Name + " steals from " + target.actorData.Name;
 }
示例#9
0
 public abstract void UpDatePreview(PreviewUIPanel panel);
示例#10
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
 }
示例#11
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Remove buff";
 }
示例#12
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text  = "Summon";
     panel.targetLabel.text  = actorData.Name + "\n";
     panel.targetLabel.text += actorData.currentStatCollection.statDict[StatTypes.Health] + " / " + actorData.maxStatCollection.statDict[StatTypes.Health];
 }
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Produces: " + item_key + " for " + targetedTile.actorOnTile.name;
 }
示例#14
0
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Apply: " + buffToApply.buffName;
 }
 public override void UpDatePreview(PreviewUIPanel panel)
 {
     panel.damageLabel.text = "Change tile to: " + newTileType;
 }