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