Create MonsterCard
This commit is contained in:
parent
169210efbe
commit
cce0b2891c
22 changed files with 203 additions and 27 deletions
21
Assets/Battle/Effects/HealEffect.cs
Normal file
21
Assets/Battle/Effects/HealEffect.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class HealEffect : IBattleEffect
|
||||
{
|
||||
private BattleParticipant target;
|
||||
private int amount;
|
||||
|
||||
public HealEffect(BattleParticipant target, int amount) {
|
||||
this.target = target;
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.Heal(this);
|
||||
}
|
||||
|
||||
public BattleParticipant Target {get => this.target;}
|
||||
public int Amount {get => this.amount;}
|
||||
}
|
||||
11
Assets/Battle/Effects/HealEffect.cs.meta
Normal file
11
Assets/Battle/Effects/HealEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a520366dc6140c4499e2c3f09ded6ee8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue