Beispiel #1
0
 public bool ShouldBeThroughNet(SLevelContext levelContent)
 {
     if (levelContent == null)
     {
         return(false);
     }
     if (levelContent.m_isWarmBattle && levelContent.IsGameTypeComBat())
     {
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public bool ShouldBeThroughNet(SLevelContext levelContent)
 {
     return(levelContent != null && (!levelContent.m_isWarmBattle || !levelContent.IsGameTypeComBat()));
 }
        public void InitView(GameObject cdButton, CUIFormScript formScript)
        {
            if (formScript == null)
            {
                return;
            }
            this.m_formScript = formScript;
            SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

            if (curLvelContext == null)
            {
                return;
            }
            if (this.IsMultiGame())
            {
                this.m_shortcutChat = new InBattleShortcut();
                this.m_shortcutChat.CacheForm(formScript, true, false);
                this.m_InputChat = new InBattleInputChat();
                this.m_InputChat.Init(formScript);
            }
            else if (curLvelContext.IsGameTypeAdventure() || curLvelContext.IsGameTypeBurning() || curLvelContext.IsGameTypeArena() || curLvelContext.IsGameTypeComBat())
            {
                this.m_shortcutChat = new InBattleShortcut();
                this.m_shortcutChat.CacheForm(formScript, false, true);
            }
            else if (cdButton != null)
            {
                cdButton.CustomSetActive(false);
            }
        }