public override void Initialize(EntityAdmin entityAdmin) { base.Initialize(entityAdmin); _cardGameMaster = EntityAdmin.GetSingletonComponent <CardGameMaster>(); _cardGameMaster.GamePhaseTag.GamePhaseChangedEvent += OnGamePhaseChangedEvent; OnGamePhaseChangedEvent(_cardGameMaster.GamePhaseTag.GamePhase); }
public override void Deinitialize() { _cardGameMaster.GamePhaseTag.GamePhaseChangedEvent -= OnGamePhaseChangedEvent; _cardGameMaster = null; base.Deinitialize(); }