Ejemplo n.º 1
0
    public ActorPreloadTab GetGlobalPreload()
    {
        ActorPreloadTab loadInfo = new ActorPreloadTab {
            ageActions    = new List <AssetLoadBase>(),
            parPrefabs    = new List <AssetLoadBase>(),
            mesPrefabs    = new List <AssetLoadBase>(),
            spritePrefabs = new List <AssetLoadBase>(),
            soundBanks    = new List <AssetLoadBase>(),
            behaviorXml   = new List <AssetLoadBase>()
        };

        this.BuildAreaTrigger(ref loadInfo);
        this.BuildActionHelper(ref loadInfo);
        this.BuildActionTrigger(ref loadInfo);
        this.BuildCommonSpawnPoints(ref loadInfo);
        this.BuildEquipInBattle(ref loadInfo);
        EffectPlayComponent.Preload(ref loadInfo);
        HudComponent3D.Preload(ref loadInfo);
        CBattleFloatDigitManager.Preload(ref loadInfo);
        OrganHitEffect.Preload(ref loadInfo);
        OrganWrapper.Preload(ref loadInfo);
        KillNotify.Preload(ref loadInfo);
        CSignalTipShower.Preload(ref loadInfo);
        CSignal.Preload(ref loadInfo);
        SkillIndicateSystem.Preload(ref loadInfo);
        ObjAgent.Preload(ref loadInfo);
        CSkillButtonManager.Preload(ref loadInfo);
        UpdateShadowPlane.Preload(ref loadInfo);
        CBattleSystem.Preload(ref loadInfo);
        CSkillData.Preload(ref loadInfo);
        return(loadInfo);
    }
Ejemplo n.º 2
0
        private void OnSignalListElementEnabled(CUIEvent uiEvent)
        {
            CUIListElementScript srcWidgetScript = (CUIListElementScript)uiEvent.m_srcWidgetScript;
            int index = srcWidgetScript.m_index;

            if ((index >= 0) || (index < this.m_signalTipses.Count))
            {
                CSignalTipShower component = srcWidgetScript.GetComponent <CSignalTipShower>();
                if (component != null)
                {
                    component.Set(this.m_signalTipses[index], uiEvent.m_srcFormScript);
                }
            }
        }
Ejemplo n.º 3
0
        private void OnSignalListElementEnabled(CUIEvent uiEvent)
        {
            CUIListElementScript cUIListElementScript = (CUIListElementScript)uiEvent.m_srcWidgetScript;
            int index = cUIListElementScript.m_index;

            if (index < 0 && index >= this.m_signalTipses.get_Count())
            {
                return;
            }
            CSignalTipShower component = cUIListElementScript.GetComponent <CSignalTipShower>();

            if (component != null)
            {
                component.Set(this.m_signalTipses.get_Item(index), uiEvent.m_srcFormScript);
            }
        }