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); } } } }
private void Awake() { s_instance = this; }
private void OnDestroy() { s_instance = null; }