protected override void Awake() { base.Awake(); Handler = GetComponentInParent <IUiCardData>(); Handler.OnSetData += OnSetData; }
void Awake() { MyRenderer = GetComponent <SpriteRenderer>(); Handler = GetComponentInParent <IUiCardData>(); Handler.OnSetData += OnSetData; }