Exemplo n.º 1
0
 public void attackTree(Trees tree)
 {
     tree.receiveAttack(dmg);
     setCanAttack(false);
     player.clickedCard = null;
     calculateDirection(tree.transform.position, true);
 }
Exemplo n.º 2
0
 public void attackTree(Trees tree)
 {
     tree.receiveAttack (dmg);
     setCanAttack (false);
     player.clickedCard = null;
     calculateDirection (tree.transform.position, true);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
 public LivingTreeClick(Trees tree, BattlePlayer player) : base(tree, player)
 {
 }
Exemplo n.º 6
0
 public EndGame(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
Exemplo n.º 7
0
 public LivingTreeClick(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
Exemplo n.º 8
0
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree   = tree;
     this.player = player;
 }
Exemplo n.º 9
0
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree = tree;
     this.player = player;
 }
Exemplo n.º 10
0
 public EndGame(Trees tree, BattlePlayer player) : base(tree, player)
 {
 }