コード例 #1
0
 void Awake()
 {
     this._battlefield         = GameObject.Find("Battlefield").GetComponent <Battlefield>();
     this._handController      = null;
     this._graveyardController = null;
     this.boardLocation        = Location.DECK;
     this.cardText             = this.GetComponentInChildren <Text>();
 }
コード例 #2
0
 void Awake()
 {
     this._battlefield         = GameObject.Find("Battlefield").GetComponent <Battlefield>();
     this._gameState           = GameObject.Find("Camera").GetComponent <GameStateController>();
     this._handController      = null;
     this._graveyardController = null;
     this._unit           = this.GetComponent <Unit>();
     this._cardController = this.GetComponent <CardController>();
     this.square          = null;
 }
コード例 #3
0
 public void Init(Owner owner)
 {
     this.ownedBy = owner;
     if (owner == Owner.PLAYER)
     {
         this._handController      = GameObject.Find("PlayerHand").GetComponent <HandController>();
         this._graveyardController = GameObject.Find("PlayerGraveyardPanel/PlayerGraveyard").GetComponent <GraveyardController>();
     }
     else
     {
         this._handController      = GameObject.Find("EnemyHand").GetComponent <HandController>();
         this._graveyardController = GameObject.Find("EnemyGraveyardPanel/EnemyGraveyard").GetComponent <GraveyardController>();
     }
 }
コード例 #4
0
 public void Init(Owner owner)
 {
     this.ownedBy = owner;
     if (this.ownedBy == Owner.PLAYER)
     {
         this._handController      = GameObject.Find("PlayerHand").GetComponent <HandController>();
         this._graveyardController = GameObject.Find("PlayerGraveyardPanel/PlayerGraveyard").GetComponent <GraveyardController>();
     }
     else
     {
         this._handController      = GameObject.Find("EnemyHand").GetComponent <HandController>();
         this._graveyardController = GameObject.Find("EnemyGraveyardPanel/EnemyGraveyard").GetComponent <GraveyardController>();
     }
     this.canMove = this.canAttack = this.isExhausted = false;
 }