private void Update()
    {
        CheckFov();
        HiddenItem item = GetCurrentGazedAtItem();

        if (_isDiscoveryPending)
        {
            // Player looked away -- cancel discovery
            if (item == null)
            {
                _isDiscoveryPending = false;
            }
            else
            {
                _timeGazed += Time.deltaTime;
                if (_timeGazed >= _detectionTime)
                {
                    _gazedAtItem.Discover();
                    _isDiscoveryPending = false;

                    _log.Append(item.ItemType + "_discovered", true);
                }
            }
        }
        if (item != null && !_isDiscoveryPending)
        {
            _gazedAtItem        = item;
            _timeGazed          = 0f;
            _isDiscoveryPending = true;

            _log.Append(item.ItemType + "_firstSpotted", true);
        }

        _log.CommitLine();
    }
 public ConfigurationDataBasicLoginWithRSSAndDisplay()
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     RSSKey = new HiddenItem { Name = "RSSKey" };
     DisplayText = new DisplayItem(""){ Name = "" };
 }
Ejemplo n.º 3
0
 public ConfigurationDataPhxBit()
     : base()
 {
     PassKey = new HiddenItem { Name = "PassKey", Value = "" };
     CredentialsWarning = new DisplayItem("<b>Credentials Configuration</b> (<i>Private Tracker</i>),<br /><br /> <ul><li><b>Username</b> is your account name on this tracker.</li><li><b>Password</b> is your password associated to your account name.</li></ul>") { Name = "Credentials" };
     Username = new StringItem { Name = "Username (Required)", Value = "" };
     Password = new StringItem { Name = "Password (Required)", Value = "" };
     PagesWarning = new DisplayItem("<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Max Pages to Process</b> let you specify how many page (max) Jackett can process when doing a search. Setting a value <b>higher than 4 is dangerous</b> for you account ! (<b>Result of too many requests to tracker...that <u>will be suspect</u></b>).</li></ul>") { Name  = "Preferences" };
     Pages = new StringItem { Name = "Max Pages to Process (Required)", Value = "4" };
     SecurityWarning = new DisplayItem("<b>Security Configuration</b> (<i>Read this area carefully !</i>),<br /><br /> <ul><li><b>Latency Simulation</b> will simulate human browsing with Jacket by pausing Jacket for an random time between each request, to fake a real content browsing.</li><li><b>Browser Simulation</b> will simulate a real human browser by injecting additionals headers when doing requests to tracker.</li></ul>") { Name = "Security" };
     Latency = new BoolItem() { Name = "Latency Simulation (Optional)", Value = false };
     Browser = new BoolItem() { Name = "Browser Simulation (Optional)", Value = true };
     LatencyWarning = new DisplayItem("<b>Latency Configuration</b> (<i>Required if latency simulation enabled</i>),<br /><br/> <ul><li>By filling this range, <b>Jackett will make a random timed pause</b> <u>between requests</u> to tracker <u>to simulate a real browser</u>.</li><li>MilliSeconds <b>only</b></li></ul>") { Name = "Simulate Latency" };
     LatencyStart = new StringItem { Name = "Minimum Latency (ms)", Value = "1589" };
     LatencyEnd = new StringItem { Name = "Maximum Latency (ms)", Value = "3674" };
     HeadersWarning = new DisplayItem("<b>Browser Headers Configuration</b> (<i>Required if browser simulation enabled</i>),<br /><br /> <ul><li>By filling these fields, <b>Jackett will inject headers</b> with your values <u>to simulate a real browser</u>.</li><li>You can get <b>your browser values</b> here: <a href='https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending' target='blank'>www.whatismybrowser.com</a></li></ul><br /><i><b>Note that</b> some headers are not necessary because they are injected automatically by this provider such as Accept_Encoding, Connection, Host or X-Requested-With</i>") { Name = "Injecting headers" };
     HeaderAccept = new StringItem { Name = "Accept", Value = "" };
     HeaderAcceptLang = new StringItem { Name = "Accept-Language", Value = "" };
     HeaderDNT = new BoolItem { Name = "DNT", Value = false };
     HeaderUpgradeInsecure = new BoolItem { Name = "Upgrade-Insecure-Requests", Value = false };
     HeaderUserAgent = new StringItem { Name = "User-Agent", Value = "" };
     DevWarning = new DisplayItem("<b>Development Facility</b> (<i>For Developers ONLY</i>),<br /><br /> <ul><li>By enabling development mode, <b>Jackett will bypass his cache</b> and will <u>output debug messages to console</u> instead of his log file.</li><li>By enabling Hard Drive Cache, <b>This provider</b> will <u>save each query answers from tracker</u> in temp directory, in fact this reduce drastically HTTP requests when building a provider at parsing step for example. So, <b> Jackett will search for a cached query answer on hard drive before executing query on tracker side !</b> <i>DEV MODE must be enabled to use it !</li></ul>") { Name = "Development" };
     DevMode = new BoolItem { Name = "Enable DEV MODE (Developers ONLY)", Value = false };
     HardDriveCache = new BoolItem { Name = "Enable HARD DRIVE CACHE (Developers ONLY)", Value = false };
     HardDriveCacheKeepTime = new StringItem { Name = "Keep Cached files for (ms)", Value = "300000" };
     }
 public ConfigurationDataCaptchaLogin()
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     CaptchaImage = new ImageItem { Name = "Captcha Image" };
     CaptchaText = new StringItem { Name = "Captcha Text" };
     CaptchaCookie = new HiddenItem("") { Name = "Captcha Cookie" };
 }
Ejemplo n.º 5
0
    private void Start()
    {
        HiddenItem hiddenItem = base.gameObject.AddComponent <HiddenItem>();

        hiddenItem.useAni  = this.useAni;
        hiddenItem.hideSec = this.hideSec;
        UnityEngine.Object.Destroy(this);
    }
Ejemplo n.º 6
0
 public BmtvConfig()
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     CaptchaImage = new ImageItem { Name = "Captcha Image" };
     CaptchaText = new StringItem { Name = "Captcha Text" };
     CaptchaCookie = new HiddenItem("") { Name = "Captcha Cookie" };
 }
 /// <param name="instructionMessageOptional">Enter any instructions the user will need to setup the tracker</param>
 public ConfigurationDataCaptchaLogin(string instructionMessageOptional = null)
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     CaptchaImage = new ImageItem { Name = "Captcha Image" };
     CaptchaText = new StringItem { Name = "Captcha Text" };
     CaptchaCookie = new HiddenItem("") { Name = "Captcha Cookie" };
     Instructions = new DisplayItem(instructionMessageOptional) { Name = "" };
 }
 public ConfigurationDataLoginTokin() : base()
 {
     ApiToken = new HiddenItem {
         Name = "ApiToken"
     };
     LastTokenFetchDate = new HiddenItem {
         Name = "LastTokenFetchDate"
     };
     LastTokenFetchDateTime = DateTime.MinValue;
 }
 public ConfigurationDataBasicLoginWithFilter(string FilterInstructions)
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     LastLoggedInCheck = new HiddenItem { Name = "LastLoggedInCheck" };
     FilterExample = new DisplayItem(FilterInstructions)
     {
         Name = ""
     };
     FilterString = new StringItem { Name = "Filters (optional)" };
 }
    // Or null
    private HiddenItem GetCurrentGazedAtItem()
    {
        // Check regular gaze ray
        HiddenItem item = GetItemAtPoint(_worldGaze.GazePos);

        if (item == null && _magManager.IsMagnifying)
        {
            // Check gaze ray through MagRect
            item = GetItemAtPoint(_gazeMagnifier.LastGazePos);
        }
        return(item);
    }
Ejemplo n.º 11
0
 bool IsTriggered()
 {
     if (HiddenGameObject)
     {
         HiddenItem item = HiddenGameObject.GetComponent <HiddenItem>();
         if (item)
         {
             return(item.IsEntered);
         }
     }
     return(false);
 }
Ejemplo n.º 12
0
 public ConfigurationDataBasicLoginWithRSS()
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     RSSKey = new HiddenItem {
         Name = "RSSKey"
     };
 }
Ejemplo n.º 13
0
 public ConfigurationDataLoginLink()
 {
     LoginLink = new StringItem {
         Name = "Login Link"
     };
     RSSKey = new HiddenItem {
         Name = "RSSKey"
     };
     DisplayText = new DisplayItem("")
     {
         Name = ""
     };
 }
Ejemplo n.º 14
0
 public NxtGnConfigurationData()
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     RSSKey = new HiddenItem {
         Name = "RSSKey"
     };
     OnlyDanishCategories = new BoolItem {
         Name = "Only Danish Categories"
     };
 }
    // Or null
    private HiddenItem GetItemAtPoint(Vector3 pos)
    {
        // Check all objects in 0.2m radius of gaze point
        Collider[] collidersSeen = Physics.OverlapSphere(pos, 0.2f);
        foreach (Collider col in collidersSeen)
        {
            HiddenItem item = col.GetComponent <HiddenItem>();
            if (item != null)
            {
                return(item);
            }
        }

        return(null);
    }
Ejemplo n.º 16
0
 public ConfigurationDataBasicLoginWithRSSAndDisplay()
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     RSSKey = new HiddenItem {
         Name = "RSSKey"
     };
     DisplayText = new DisplayItem("")
     {
         Name = ""
     };
 }
 public ConfigurationDataBasicLoginWithRSSAndDisplay(string instructionMessageOptional = null)
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     RSSKey = new HiddenItem {
         Name = "RSSKey"
     };
     Instructions = new DisplayItem(instructionMessageOptional)
     {
         Name = ""
     };
 }
Ejemplo n.º 18
0
 private void Start()
 {
     if (this.target != null)
     {
         this.target.SetActive(false);
         TriggerHanldePoint triggerHanldePoint = base.gameObject.AddComponent <TriggerHanldePoint>();
         triggerHanldePoint.type    = 8;
         triggerHanldePoint.paramGo = new List <GameObject>
         {
             this.target
         };
         HiddenItem hiddenItem = this.target.AddComponent <HiddenItem>();
         hiddenItem.useAni  = this.useAni;
         hiddenItem.hideSec = this.hideSec;
     }
     UnityEngine.Object.Destroy(this);
 }
 public ConfigurationDataBasicLoginWithFilter(string FilterInstructions)
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     LastLoggedInCheck = new HiddenItem {
         Name = "LastLoggedInCheck"
     };
     FilterExample = new DisplayItem(FilterInstructions)
     {
         Name = ""
     };
     FilterString = new StringItem {
         Name = "Filters (optional)"
     };
 }
Ejemplo n.º 20
0
 public ConfigurationDataCaptchaLogin()
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     CaptchaImage = new ImageItem {
         Name = "Captcha Image"
     };
     CaptchaText = new StringItem {
         Name = "Captcha Text"
     };
     CaptchaCookie = new HiddenItem("")
     {
         Name = "Captcha Cookie"
     };
 }
Ejemplo n.º 21
0
 /// <param name="instructionMessageOptional">Enter any instructions the user will need to setup the tracker</param>
 public ConfigurationDataCaptchaLogin(string instructionMessageOptional = null)
 {
     Username = new StringItem {
         Name = "Username"
     };
     Password = new StringItem {
         Name = "Password"
     };
     CaptchaImage = new ImageItem {
         Name = "Captcha Image"
     };
     CaptchaText = new StringItem {
         Name = "Captcha Text"
     };
     CaptchaCookie = new HiddenItem("")
     {
         Name = "Captcha Cookie"
     };
     Instructions = new DisplayItem(instructionMessageOptional)
     {
         Name = ""
     };
 }
 public ConfigurationDataPhxBit()
     : base()
 {
     PassKey = new HiddenItem {
         Name = "PassKey", Value = ""
     };
     CredentialsWarning = new DisplayItem("<b>Credentials Configuration</b> (<i>Private Tracker</i>),<br /><br /> <ul><li><b>Username</b> is your account name on this tracker.</li><li><b>Password</b> is your password associated to your account name.</li></ul>")
     {
         Name = "Credentials"
     };
     Username = new StringItem {
         Name = "Username (Required)", Value = ""
     };
     Password = new StringItem {
         Name = "Password (Required)", Value = ""
     };
     PagesWarning = new DisplayItem("<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Max Pages to Process</b> let you specify how many page (max) Jackett can process when doing a search. Setting a value <b>higher than 4 is dangerous</b> for you account ! (<b>Result of too many requests to tracker...that <u>will be suspect</u></b>).</li></ul>")
     {
         Name = "Preferences"
     };
     Pages = new StringItem {
         Name = "Max Pages to Process (Required)", Value = "4"
     };
     SecurityWarning = new DisplayItem("<b>Security Configuration</b> (<i>Read this area carefully !</i>),<br /><br /> <ul><li><b>Latency Simulation</b> will simulate human browsing with Jacket by pausing Jacket for an random time between each request, to fake a real content browsing.</li><li><b>Browser Simulation</b> will simulate a real human browser by injecting additionals headers when doing requests to tracker.</li></ul>")
     {
         Name = "Security"
     };
     Latency = new BoolItem()
     {
         Name = "Latency Simulation (Optional)", Value = false
     };
     Browser = new BoolItem()
     {
         Name = "Browser Simulation (Optional)", Value = true
     };
     LatencyWarning = new DisplayItem("<b>Latency Configuration</b> (<i>Required if latency simulation enabled</i>),<br /><br/> <ul><li>By filling this range, <b>Jackett will make a random timed pause</b> <u>between requests</u> to tracker <u>to simulate a real browser</u>.</li><li>MilliSeconds <b>only</b></li></ul>")
     {
         Name = "Simulate Latency"
     };
     LatencyStart = new StringItem {
         Name = "Minimum Latency (ms)", Value = "1589"
     };
     LatencyEnd = new StringItem {
         Name = "Maximum Latency (ms)", Value = "3674"
     };
     HeadersWarning = new DisplayItem("<b>Browser Headers Configuration</b> (<i>Required if browser simulation enabled</i>),<br /><br /> <ul><li>By filling these fields, <b>Jackett will inject headers</b> with your values <u>to simulate a real browser</u>.</li><li>You can get <b>your browser values</b> here: <a href='https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending' target='blank'>www.whatismybrowser.com</a></li></ul><br /><i><b>Note that</b> some headers are not necessary because they are injected automatically by this provider such as Accept_Encoding, Connection, Host or X-Requested-With</i>")
     {
         Name = "Injecting headers"
     };
     HeaderAccept = new StringItem {
         Name = "Accept", Value = ""
     };
     HeaderAcceptLang = new StringItem {
         Name = "Accept-Language", Value = ""
     };
     HeaderDNT = new BoolItem {
         Name = "DNT", Value = false
     };
     HeaderUpgradeInsecure = new BoolItem {
         Name = "Upgrade-Insecure-Requests", Value = false
     };
     HeaderUserAgent = new StringItem {
         Name = "User-Agent", Value = ""
     };
     DevWarning = new DisplayItem("<b>Development Facility</b> (<i>For Developers ONLY</i>),<br /><br /> <ul><li>By enabling development mode, <b>Jackett will bypass his cache</b> and will <u>output debug messages to console</u> instead of his log file.</li><li>By enabling Hard Drive Cache, <b>This provider</b> will <u>save each query answers from tracker</u> in temp directory, in fact this reduce drastically HTTP requests when building a provider at parsing step for example. So, <b> Jackett will search for a cached query answer on hard drive before executing query on tracker side !</b> <i>DEV MODE must be enabled to use it !</li></ul>")
     {
         Name = "Development"
     };
     DevMode = new BoolItem {
         Name = "Enable DEV MODE (Developers ONLY)", Value = false
     };
     HardDriveCache = new BoolItem {
         Name = "Enable HARD DRIVE CACHE (Developers ONLY)", Value = false
     };
     HardDriveCacheKeepTime = new StringItem {
         Name = "Keep Cached files for (ms)", Value = "300000"
     };
 }
 public ConfigurationDataBasicLoginWithRSS()
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     RSSKey = new HiddenItem { Name = "RSSKey" };
 }
Ejemplo n.º 24
0
        virtual public void onTriggerHanlde()
        {
            //  MonsterMgr._inst.AddMonster(transform);

            if (type == 1)
            {
                if (paramInts.Count == 0)
                {
                    return;
                }


                MonsterMgr._inst.AddMonster(paramInts[0], transform.position, 0, transform.localEulerAngles.y);
            }
            else if (type == 2)//enable
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                foreach (GameObject go in paramGo)
                {
                    go.SetActive(true);
                }
            }
            else if (type == 3)//unenable
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                foreach (GameObject go in paramGo)
                {
                    HiddenItem hideitem = go.GetComponent <HiddenItem>();
                    if (hideitem != null)
                    {
                        hideitem.hide();
                    }
                    else
                    {
                        go.SetActive(false);
                    }
                }
            }
            else if (type == 4)//nav
            {
                if (paramInts.Count == 0)
                {
                    return;
                }

                int idx = 0;
                for (int i = 0; i < paramInts.Count; i++)
                {
                    idx += NavmeshUtils.listARE[paramInts[i]];
                }

                if (idx == 0)
                {
                    return;
                }

                SelfRole._inst.setNavLay(idx);
            }
            else if (type == 5)
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                Transform con = paramGo[0].transform;
                for (int i = 0; i < con.childCount; i++)
                {
                    GameObject tempgi = con.GetChild(i).gameObject;
                    tempgi.AddComponent <BrokenIten>();
                }
            }
            else if (type == 6)
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                if (paramFloat.Count == 0)
                {
                    return;
                }

                if (paramBool)
                {
                    InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_HIDE_ALL);
                    a1_gamejoy.inst_joystick.stopDrag();
                }

                paramGo[1].SetActive(true);
                SceneCamera.changeAniCamera(paramGo[0], paramFloat[0]);
            }

            else if (type == 8)
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                paramGo[0].SetActive(true);

                HiddenItem hideitem = paramGo[0].GetComponent <HiddenItem>();
                if (hideitem != null)
                {
                    hideitem.hide();
                }
                else
                {
                    paramGo[0].SetActive(false);
                }
            }
            else if (type == 9)
            {
                if (paramFloat.Count < 2)
                {
                    return;
                }
                if (paramInts.Count < 1)
                {
                    return;
                }

                SceneCamera.cameraShake(paramFloat[0], paramInts[0], paramFloat[1]);
            }
            else if (type == 10)//eff
            {
                if (paramFloat.Count < 1)
                {
                    return;
                }
                if (paramGo.Count < 1)
                {
                    return;
                }
                GameObject tempGo = GameObject.Instantiate(paramGo[0]) as GameObject;

                tempGo.transform.SetParent(SelfRole._inst.m_curModel, false);
                Destroy(tempGo, paramFloat[0]);
            }
            else if (type == 11)//dialog
            {
                if (dialogid <= 0)
                {
                    return;
                }
                SXML          ncpxml = XMLMgr.instance.GetSXML("dialog");
                SXML          xml    = ncpxml.GetNode("dialog", "id==" + dialogid);
                List <string> lstr   = new List <string>();
                if (xml != null)
                {
                    List <SXML> l = new List <SXML>();
                    l = xml.GetNodeList("log");
                    foreach (SXML s in l)
                    {
                        lstr.Add(s.getString("value"));
                    }
                }
                List <string> ldialog = lstr;

                NpcRole npc = null;
                if (paramGo != null && paramGo.Count > 0 && paramGo[0] != null)
                {
                    npc = paramGo[0].GetComponent <NpcRole>();
                }

                DoAfterMgr.instacne.addAfterRender(() =>
                {
                    dialog.showTalk(ldialog, null, npc);
                });
            }
            else if (type == 12)//act
            {
                if (paramStr.Count < 1)
                {
                    return;
                }

                if (paramGo == null || paramGo.Count == 0 || paramGo[0] == null)
                {
                    SelfRole._inst.m_curAni.SetTrigger(paramStr[0]);
                }
                else
                {
                    Animator anim = paramGo[0].GetComponent <Animator>();
                    if (anim != null)
                    {
                        anim.SetTrigger(paramStr[0]);
                    }
                }
            }
            else if (type == 13)//newbiecode
            {
                if (waitCodesid == 0)
                {
                    return;
                }


                NewbieTeachMgr.getInstance().add(1, waitCodesid, -1);
            }
            else if (type == 14)//floatui
            {
                if (!paramBool)
                {
                    //InterfaceMgr.getInstance().floatUI.transform.localScale = Vector3.zero;
                    InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_STORY);
                    if (a1_gamejoy.inst_joystick != null)
                    {
                        a1_gamejoy.inst_joystick.OnDragOut();
                    }
                }
                else
                {
                    InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);
                    //InterfaceMgr.getInstance().floatUI.transform.localScale = Vector3.one;
                }
            }
            else if (type == 15)//gos
            {
                lGo = paramGo;
            }
            else if (type == 16)//group
            {
                if (paramGo.Count == 0)
                {
                    return;
                }

                foreach (GameObject go in paramGo)
                {
                    TriggerHanldePoint tri = go.GetComponent <TriggerHanldePoint>();
                    if (tri != null)
                    {
                        tri.onTriggerHanlde();
                    }
                }
            }
            else if (type == 17)
            {
                //延迟0.5秒关闭loading界面。解决avatar一闪和一些初始化的东西卡住的问题
                if (maploading.instance != null)
                {
                    maploading.instance.closeLoadWait(0.5f);
                }
            }
        }
Ejemplo n.º 25
0
        public virtual void onTriggerHanlde()
        {
            bool flag = this.type == 1;

            if (flag)
            {
                bool flag2 = this.paramInts.Count == 0;
                if (!flag2)
                {
                    MonsterMgr._inst.AddMonster(this.paramInts[0], base.transform.position, 0u, base.transform.localEulerAngles.y, 0, 0, null);
                }
            }
            else
            {
                bool flag3 = this.type == 2;
                if (flag3)
                {
                    bool flag4 = this.paramGo.Count == 0;
                    if (!flag4)
                    {
                        foreach (GameObject current in this.paramGo)
                        {
                            current.SetActive(true);
                        }
                    }
                }
                else
                {
                    bool flag5 = this.type == 3;
                    if (flag5)
                    {
                        bool flag6 = this.paramGo.Count == 0;
                        if (!flag6)
                        {
                            foreach (GameObject current2 in this.paramGo)
                            {
                                HiddenItem component = current2.GetComponent <HiddenItem>();
                                bool       flag7     = component != null;
                                if (flag7)
                                {
                                    component.hide();
                                }
                                else
                                {
                                    current2.SetActive(false);
                                }
                            }
                        }
                    }
                    else
                    {
                        bool flag8 = this.type == 4;
                        if (flag8)
                        {
                            bool flag9 = this.paramInts.Count == 0;
                            if (!flag9)
                            {
                                int num = 0;
                                for (int i = 0; i < this.paramInts.Count; i++)
                                {
                                    num += NavmeshUtils.listARE[this.paramInts[i]];
                                }
                                bool flag10 = num == 0;
                                if (!flag10)
                                {
                                    SelfRole._inst.setNavLay(num);
                                }
                            }
                        }
                        else
                        {
                            bool flag11 = this.type == 5;
                            if (flag11)
                            {
                                bool flag12 = this.paramGo.Count == 0;
                                if (!flag12)
                                {
                                    Transform transform = this.paramGo[0].transform;
                                    for (int j = 0; j < transform.childCount; j++)
                                    {
                                        GameObject gameObject = transform.GetChild(j).gameObject;
                                        gameObject.AddComponent <BrokenIten>();
                                    }
                                }
                            }
                            else
                            {
                                bool flag13 = this.type == 6;
                                if (flag13)
                                {
                                    bool flag14 = this.paramGo.Count == 0;
                                    if (!flag14)
                                    {
                                        bool flag15 = this.paramFloat.Count == 0;
                                        if (!flag15)
                                        {
                                            bool flag16 = this.paramBool;
                                            if (flag16)
                                            {
                                                InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_HIDE_ALL);
                                                joystick.instance.stopDrag();
                                            }
                                            this.paramGo[1].SetActive(true);
                                            SceneCamera.changeAniCamera(this.paramGo[0], this.paramFloat[0]);
                                        }
                                    }
                                }
                                else
                                {
                                    bool flag17 = this.type == 8;
                                    if (flag17)
                                    {
                                        bool flag18 = this.paramGo.Count == 0;
                                        if (!flag18)
                                        {
                                            this.paramGo[0].SetActive(true);
                                            HiddenItem component2 = this.paramGo[0].GetComponent <HiddenItem>();
                                            bool       flag19     = component2 != null;
                                            if (flag19)
                                            {
                                                component2.hide();
                                            }
                                            else
                                            {
                                                this.paramGo[0].SetActive(false);
                                            }
                                        }
                                    }
                                    else
                                    {
                                        bool flag20 = this.type == 9;
                                        if (flag20)
                                        {
                                            bool flag21 = this.paramFloat.Count < 2;
                                            if (!flag21)
                                            {
                                                bool flag22 = this.paramInts.Count < 1;
                                                if (!flag22)
                                                {
                                                    SceneCamera.cameraShake(this.paramFloat[0], this.paramInts[0], this.paramFloat[1]);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            bool flag23 = this.type == 10;
                                            if (flag23)
                                            {
                                                bool flag24 = this.paramFloat.Count < 1;
                                                if (!flag24)
                                                {
                                                    bool flag25 = this.paramGo.Count < 1;
                                                    if (!flag25)
                                                    {
                                                        GameObject gameObject2 = UnityEngine.Object.Instantiate <GameObject>(this.paramGo[0]);
                                                        gameObject2.transform.SetParent(SelfRole._inst.m_curModel, false);
                                                        UnityEngine.Object.Destroy(gameObject2, this.paramFloat[0]);
                                                    }
                                                }
                                            }
                                            else
                                            {
                                                bool flag26 = this.type == 11;
                                                if (flag26)
                                                {
                                                    bool flag27 = this.paramStr.Count < 1;
                                                    if (!flag27)
                                                    {
                                                        List <string> ldialog = this.paramStr;
                                                        NpcRole       npc     = null;
                                                        bool          flag28  = this.paramGo != null && this.paramGo.Count > 0 && this.paramGo[0] != null;
                                                        if (flag28)
                                                        {
                                                            npc = this.paramGo[0].GetComponent <NpcRole>();
                                                        }
                                                        DoAfterMgr.instacne.addAfterRender(delegate
                                                        {
                                                            dialog.showTalk(ldialog, null, npc, false);
                                                        });
                                                    }
                                                }
                                                else
                                                {
                                                    bool flag29 = this.type == 12;
                                                    if (flag29)
                                                    {
                                                        bool flag30 = this.paramStr.Count < 1;
                                                        if (!flag30)
                                                        {
                                                            bool flag31 = this.paramGo == null || this.paramGo.Count == 0 || this.paramGo[0] == null;
                                                            if (flag31)
                                                            {
                                                                SelfRole._inst.m_curAni.SetTrigger(this.paramStr[0]);
                                                            }
                                                            else
                                                            {
                                                                Animator component3 = this.paramGo[0].GetComponent <Animator>();
                                                                bool     flag32     = component3 != null;
                                                                if (flag32)
                                                                {
                                                                    component3.SetTrigger(this.paramStr[0]);
                                                                }
                                                            }
                                                        }
                                                    }
                                                    else
                                                    {
                                                        bool flag33 = this.type == 13;
                                                        if (flag33)
                                                        {
                                                            bool flag34 = this.paramStr.Count < 1;
                                                            if (!flag34)
                                                            {
                                                                NewbieTeachMgr.getInstance().add(this.paramStr, -1);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            bool flag35 = this.type == 14;
                                                            if (flag35)
                                                            {
                                                                bool flag36 = !this.paramBool;
                                                                if (flag36)
                                                                {
                                                                    InterfaceMgr.getInstance().floatUI.transform.localScale = Vector3.zero;
                                                                    bool flag37 = joystick.instance != null;
                                                                    if (flag37)
                                                                    {
                                                                        joystick.instance.OnDragOut(null);
                                                                    }
                                                                }
                                                                else
                                                                {
                                                                    InterfaceMgr.getInstance().floatUI.transform.localScale = Vector3.one;
                                                                }
                                                            }
                                                            else
                                                            {
                                                                bool flag38 = this.type == 15;
                                                                if (flag38)
                                                                {
                                                                    TriggerHanldePoint.lGo = this.paramGo;
                                                                }
                                                                else
                                                                {
                                                                    bool flag39 = this.type == 16;
                                                                    if (flag39)
                                                                    {
                                                                        bool flag40 = this.paramGo.Count == 0;
                                                                        if (!flag40)
                                                                        {
                                                                            foreach (GameObject current3 in this.paramGo)
                                                                            {
                                                                                TriggerHanldePoint component4 = current3.GetComponent <TriggerHanldePoint>();
                                                                                bool flag41 = component4 != null;
                                                                                if (flag41)
                                                                                {
                                                                                    component4.onTriggerHanlde();
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                    else
                                                                    {
                                                                        bool flag42 = this.type == 17;
                                                                        if (flag42)
                                                                        {
                                                                            bool flag43 = maploading.instance != null;
                                                                            if (flag43)
                                                                            {
                                                                                maploading.instance.closeLoadWait(0.5f);
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 26
0
 public NxtGnConfigurationData()
 {
     Username = new StringItem { Name = "Username" };
     Password = new StringItem { Name = "Password" };
     RSSKey = new HiddenItem { Name = "RSSKey" };
     OnlyDanishCategories = new BoolItem { Name = "Only Danish Categories" };
 }
Ejemplo n.º 27
0
 public ConfigurationDataLoginTokin() : base()
 {
     ApiToken = new HiddenItem { Name = "ApiToken" };
     LastTokenFetchDate = new HiddenItem { Name = "LastTokenFetchDate" };
     LastTokenFetchDateTime = DateTime.MinValue;
 }
Ejemplo n.º 28
0
 public ConfigurationDataLoginLink()
 {
     LoginLink = new StringItem { Name = "Login Link" };
     RSSKey = new HiddenItem { Name = "RSSKey" };
     DisplayText = new DisplayItem(""){ Name = "" };
 }