public GameObject CreateGameCreature(Card card) { GameObject go = Instantiate(attackHealthCard); go.transform.SetParent(GameObject.FindGameObjectWithTag("Canvas").transform, false); GameCreature gc = go.GetComponent <GameCreature>() as GameCreature; gc.Initialise(card); return(go); }
//Must be implemented in specific effect using EffectCommands public abstract void ActivateEffect(GameCreature target);
public override void ActivateEffect (GameCreature target) { EffectCommands.BuffAttack (target, changeAttack); }
public static void BuffAttack(GameCreature target, int value) { target.ModifyCurrentAttack(value); }
public static void SetAttack(GameCreature target, int value) { target.SetCurrentAttack(value); }
public static void SetHealth(GameCreature target, int value) { target.SetCurrentHealth(value); }
public static void BuffHealth(GameCreature target, int value) { target.ModifyCurrentHealth(value); }
public override void ActivateEffect(GameCreature target) { EffectCommands.SetHealth(target, newHealthValue); }
public override void ActivateEffect(GameCreature target) { EffectCommands.BuffAttack(target, changeAttack); }
public override void ActivateEffect(GameCreature target) { EffectCommands.SetHealth (target, newHealthValue); }