示例#1
0
 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);
 }
示例#3
0
        //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);
        }
示例#4
0
        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)
 {
 }
示例#6
0
 public EndGame(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
 public LivingTreeClick(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree   = tree;
     this.player = player;
 }
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree = tree;
     this.player = player;
 }
示例#10
0
 public EndGame(Trees tree, BattlePlayer player) : base(tree, player)
 {
 }