Ejemplo n.º 1
0
 private void NotifyWillProcessTaskList(PowerTaskList taskList)
 {
     if (ThinkEmoteManager.Get() != null)
     {
         ThinkEmoteManager.Get().NotifyOfActivity();
     }
     if (taskList.IsSourceActionOrigin())
     {
         Network.HistActionStart sourceAction = taskList.GetSourceAction();
         if (sourceAction.BlockType == HistoryBlock.Type.PLAY)
         {
             Entity entity = GameState.Get().GetEntity(sourceAction.Entity);
             if (entity.GetController().IsOpposingSide())
             {
                 string cardId = entity.GetCardId();
                 if (string.IsNullOrEmpty(cardId))
                 {
                     cardId = this.FindRevealedCardId(taskList);
                 }
                 GameState.Get().GetGameEntity().NotifyOfOpponentWillPlayCard(cardId);
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     s_instance = this;
 }
Ejemplo n.º 3
0
 private void OnDestroy()
 {
     s_instance = null;
 }