protected override void OnDisable()
 {
     tweenCtrl.Skip(true);
     if (rareBossTweenCtrl != null)
     {
         rareBossTweenCtrl.Skip(true);
     }
     base.OnDisable();
 }
示例#2
0
    public static void Skip(Transform root, bool forward = true, int tween_ctrl_id = 0)
    {
        UITweenCtrl uITweenCtrl = SearchTweenCtrl(root, tween_ctrl_id);

        if (!(uITweenCtrl == null))
        {
            uITweenCtrl.Skip(forward);
        }
    }
 public virtual void OnClickPopMenu()
 {
     tweenCtrl.Reset();
     tweenCtrl.Skip(isPopMenu);
     isPopMenu = !isPopMenu;
     tweenCtrl.Play(isPopMenu, delegate
     {
         isLockReq = true;
         lockTimer = 0.1f;
     });
     if (!isUnLock)
     {
         panelChange.UnLock();
         isUnLock = true;
     }
     isLockReq = false;
     if (isPopMenu)
     {
         if (button != null)
         {
             button.normalSprite = buttonSpriteName[0];
         }
         else if (buttonSprite != null)
         {
             buttonSprite.spriteName = buttonSpriteName[0];
         }
         icons[0].SetActive(true);
         icons[1].SetActive(false);
         SoundManager.PlaySystemSE(SoundID.UISE.MENU_OPEN, 1f);
     }
     else
     {
         if (button != null)
         {
             button.normalSprite = buttonSpriteName[1];
         }
         else if (buttonSprite != null)
         {
             buttonSprite.spriteName = buttonSpriteName[1];
         }
         icons[0].SetActive(false);
         icons[1].SetActive(true);
         SoundManager.PlaySystemSE(SoundID.UISE.CANCEL, 1f);
     }
 }
 public void OpenTutorialFirstDelivery()
 {
     tweenStratCtrl.Reset();
     tweenEndCtrl.Reset();
     tweenStratCtrl.Play(true, delegate
     {
         SetState(MessageState.CollectItemImg);
         tweenEndCtrl.Play(true, delegate
         {
             //IL_0006: Unknown result type (might be due to invalid IL or missing references)
             //IL_0017: Unknown result type (might be due to invalid IL or missing references)
             tweenStratCtrl.get_gameObject().SetActive(false);
             tweenEndCtrl.get_gameObject().SetActive(false);
         });
     });
     skilBtn.onClick.Clear();
     skilBtn.onClick.Add(new EventDelegate(delegate
     {
         tweenStratCtrl.Skip(true);
     }));
 }
	public void Skip()
	{
		isLockReq = true;
		lockTimer = lockInterval;
		tweenCtrl.Skip(true);
	}