Exemple #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>();
 }
Exemple #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;
 }
Exemple #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>();
     }
 }
Exemple #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;
 }