コード例 #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
ファイル: Effect.cs プロジェクト: divinekoala/CardGame
	//Must be implemented in specific effect using EffectCommands
	public abstract void ActivateEffect(GameCreature target);
コード例 #3
0
ファイル: BuffEffect.cs プロジェクト: divinekoala/CardGame
	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);
    }