Example #1
0
    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);
    }
Example #2
0
	//Must be implemented in specific effect using EffectCommands
	public abstract void ActivateEffect(GameCreature target);
Example #3
0
	public override void ActivateEffect (GameCreature target) {
		EffectCommands.BuffAttack (target, changeAttack);
	}
Example #4
0
 public static void BuffAttack(GameCreature target, int value)
 {
     target.ModifyCurrentAttack(value);
 }
Example #5
0
 public static void SetAttack(GameCreature target, int value)
 {
     target.SetCurrentAttack(value);
 }
Example #6
0
 public static void SetHealth(GameCreature target, int value)
 {
     target.SetCurrentHealth(value);
 }
Example #7
0
 public static void BuffHealth(GameCreature target, int value)
 {
     target.ModifyCurrentHealth(value);
 }
Example #8
0
 public override void ActivateEffect(GameCreature target)
 {
     EffectCommands.SetHealth(target, newHealthValue);
 }
Example #9
0
 public override void ActivateEffect(GameCreature target)
 {
     EffectCommands.BuffAttack(target, changeAttack);
 }
Example #10
0
	public static void BuffAttack(GameCreature target, int value) {
        target.ModifyCurrentAttack(value);
    }
Example #11
0
	public static void SetAttack(GameCreature target, int value) {
        target.SetCurrentAttack(value);
    }
Example #12
0
	public static void SetHealth(GameCreature target, int value) {
        target.SetCurrentHealth(value);
    }
Example #13
0
	public static void BuffHealth(GameCreature target, int value) {
        target.ModifyCurrentHealth(value);
    }
Example #14
0
 //Must be implemented in specific effect using EffectCommands
 public abstract void ActivateEffect(GameCreature target);
Example #15
0
	public override void ActivateEffect(GameCreature target) {
		EffectCommands.SetHealth (target, newHealthValue);
    }