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