示例#1
0
 private void Start()
 {
     _collider                 = GetComponentInChildren <CardCollider>();
     _collider.OnClicked      += CardClicked;
     _collider.OnFocusChanged += FocusChanged;
     _billboard                = gameObject.AddComponent <Billboard>();
     _billboard.enabled        = false;
 }
示例#2
0
    private void Awake()
    {
        this.cardAbilitiesDescription = this.GetComponent <CardAbilitiesDescription>();
        this.container    = this.transform.Find("Container");
        this.cardCollider = this.transform.Find("Container/Collider").GetComponent <CardCollider>();

        this.cardBaseBlack       = this.transform.Find("Container/CardBaseBlack").gameObject;
        this.overGlowObject      = this.transform.Find("Container/Front/OverGlow").gameObject;
        this.selectedGlowObject  = this.transform.Find("Container/Front/SelectedGlow").gameObject;
        this.convertToManaButton = this.transform.Find("Container/Front/ConvertToManaButton").gameObject;
    }
 void Awake()
 {
     this.cardDisplay  = this.GetComponent <CardDisplay>();
     this.cardCollider = this.transform.Find("Container/Collider").GetComponent <CardCollider>();
 }