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