Esempio n. 1
0
 protected override void OnDestroy()
 {
     if (this.mBlock != null)
     {
         this.mBlock.Destroy();
         this.mBlock = (BlockInterrupt)null;
     }
     base.OnDestroy();
 }
Esempio n. 2
0
    public static BlockInterrupt Create(BlockInterrupt.EType type)
    {
        BlockInterrupt blockInterrupt = new BlockInterrupt();

        if (blockInterrupt == null)
        {
            return((BlockInterrupt)null);
        }
        blockInterrupt.mActive = true;
        blockInterrupt.mType   = type;
        BlockInterrupt.mInstances.Add(blockInterrupt);
        return(blockInterrupt);
    }
Esempio n. 3
0
 private void Update()
 {
     if (!this.mStart)
     {
         return;
     }
     if (this.mCheckFlag[0] && !((Behaviour)EventSystem.get_current().get_currentInputModule()).get_enabled())
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[1] && FadeController.InstanceExists && FadeController.Instance.IsFading(0))
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[2] && Network.IsConnecting)
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[3] && !FlowNode_GetCurrentScene.IsAfterLogin())
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[4] && BlockInterrupt.IsBlocked(BlockInterrupt.EType.ALL))
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[5] && BlockInterrupt.IsBlocked(BlockInterrupt.EType.PHOTON_DISCONNECTED))
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[6] && BlockInterrupt.IsBlocked(BlockInterrupt.EType.URL_SCHEME_LAUNCH))
     {
         this.AnyOn();
     }
     else if (this.mCheckFlag[7] && CriticalSection.IsActive)
     {
         this.AnyOn();
     }
     else
     {
         this.AllPass();
     }
 }
Esempio n. 4
0
        public override void OnActivate(int pinID)
        {
            switch (pinID)
            {
            case 0:
                if (this.mBlock != null)
                {
                    this.mBlock.Destroy();
                    this.mBlock = (BlockInterrupt)null;
                }
                this.ActivateOutputLinks(10);
                break;

            case 5:
                if (this.mBlock == null)
                {
                    this.mBlock = BlockInterrupt.Create(this.Type);
                }
                this.ActivateOutputLinks(20);
                break;
            }
        }
 private void Update()
 {
     if (this.StartExec)
     {
         this.UpdatePendingParam();
     }
     else
     {
         if (!MonoSingleton <GameManager> .Instance.Player.CheckUnlock(UnlockTargets.MultiPlay) || !this.StartCheck || (!FlowNode_GetCurrentScene.IsAfterLogin() || Object.op_Equality((Object)MonoSingleton <GameManager> .GetInstanceDirect(), (Object)null)) || (string.IsNullOrEmpty(MonoSingleton <GameManager> .GetInstanceDirect().Player.Name) || Object.op_Equality((Object)EventSystem.get_current(), (Object)null) || (Object.op_Equality((Object)EventSystem.get_current().get_currentInputModule(), (Object)null) || !((Behaviour)EventSystem.get_current().get_currentInputModule()).get_enabled())) || (Network.IsConnecting || BlockInterrupt.IsBlocked(BlockInterrupt.EType.URL_SCHEME_LAUNCH) || (CriticalSection.IsActive || !GlobalVars.IsTutorialEnd)))
         {
             return;
         }
         if (GameUtility.GetCurrentScene() == GameUtility.EScene.HOME)
         {
             HomeWindow current = HomeWindow.Current;
             if (Object.op_Equality((Object)current, (Object)null) || !current.IsReadyInTown)
             {
                 return;
             }
         }
         if (!this.UpdatePendingParam())
         {
             return;
         }
         this.StartCheck = false;
         this.StartExec  = true;
         DebugUtility.Log("UrlScheme MultiPlayLINE start. CheckEnd!" + (object)(FlowNode_OnUrlSchemeLaunch.LINEParam_Pending != null));
         this.ActivateOutputLinks(1);
     }
 }