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