public void attackTree(Trees tree) { tree.receiveAttack(dmg); setCanAttack(false); player.clickedCard = null; calculateDirection(tree.transform.position, true); }
public void attackTree(Trees tree) { tree.receiveAttack (dmg); setCanAttack (false); player.clickedCard = null; calculateDirection (tree.transform.position, true); }
//Instantiates the Tree with Tree script public void createTree() { GameObject obj = (GameObject)Instantiate(Resources.Load("Prefabs/Battle/Tree")); obj.AddComponent <Trees>(); Trees script = obj.GetComponent <Trees> (); script.init(this); treeID.Add(obj); }
public void attackTree(int attackerIndex) { GameObject attackerObj = (GameObject)GameManager.player2.cardsInPlay [attackerIndex]; AbstractCard attackerCard = attackerObj.GetComponent <AbstractCard> (); GameObject attackedObj = (GameObject)GameManager.player1.treeID [0]; Trees tree = attackedObj.GetComponent <Trees> (); attackerCard.attackTree(tree); }
public LivingTreeClick(Trees tree, BattlePlayer player) : base(tree, player) { }
public EndGame(Trees tree, BattlePlayer player) : base(tree, player) { }
public TreesHandler(Trees tree, BattlePlayer player) { this.tree = tree; this.player = player; }