Ejemplo n.º 1
0
        private void Awake()
        {
            _guiMediator = GameObject.FindGameObjectWithTag(Tag.GuiMediator).GetComponent <GuiMediator>();
            var game = GameObject.FindGameObjectWithTag(Tag.GameController).GetComponent <Game>();

            game.Subscribe(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Use this for initialization
 /// </summary>
 private void Awake()
 {
     _guiMediator = GameObject.FindGameObjectWithTag(Tag.GuiMediator).GetComponent <GuiMediator>();
     _cardImage   = GetComponent <Image>();
 }