コード例 #1
0
 public void attackTree(Trees tree)
 {
     tree.receiveAttack(dmg);
     setCanAttack(false);
     player.clickedCard = null;
     calculateDirection(tree.transform.position, true);
 }
コード例 #2
0
 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);
        }
コード例 #5
0
 public LivingTreeClick(Trees tree, BattlePlayer player) : base(tree, player)
 {
 }
コード例 #6
0
ファイル: EndGame.cs プロジェクト: hunvil/ConvergeGame_Client
 public EndGame(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
コード例 #7
0
 public LivingTreeClick(Trees tree, BattlePlayer player)
     : base(tree, player)
 {
 }
コード例 #8
0
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree   = tree;
     this.player = player;
 }
コード例 #9
0
 public TreesHandler(Trees tree, BattlePlayer player)
 {
     this.tree = tree;
     this.player = player;
 }
コード例 #10
0
ファイル: EndGame.cs プロジェクト: pbroestl/unity-game-client
 public EndGame(Trees tree, BattlePlayer player) : base(tree, player)
 {
 }