unclickable_sec() public method

public unclickable_sec ( float time ) : void
time float
return void
Ejemplo n.º 1
0
 public void dialog_appear(bool bstat)
 {
     rep.set_mode(-4);
     _ani = ((Component)base.gameObject.transform.parent).GetComponent <Animation>();
     if (bstat)
     {
         _clickmask.unclickable_sec(0.45f);
         ((Component)base.gameObject.transform.parent).GetComponent <UIPanel>().enabled = true;
         set_dialog_anime(value: true);
         csb.StopParticle();
         base.gameObject.transform.localPosition = new Vector3(0f, -27f, 0f);
         base.gameObject.transform.localScale    = Vector3.one * 0.6f;
         TweenScale tweenScale = TweenScale.Begin(base.gameObject, 0.4f, Vector3.one);
         tweenScale.animationCurve = UtilCurves.TweenEaseOutBack;
         tweenScale.SetOnFinished(CompleteHandler);
         rep.setmask(3, value: true);
         rep.set_mode(4);
     }
     else
     {
         set_dialog_anime(value: true);
         csb.StartParticle();
         base.gameObject.transform.localScale = Vector3.one;
         iTween.MoveTo(base.gameObject, iTween.Hash("islocal", true, "x", 0f, "y", 800, "z", -2, "delay", 0.3f, "time", 0f));
         iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 0.6f, "y", 0.6f, "z", 0.6f, "delay", 0.3f, "time", 0f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler_onClose", "oncompletetarget", base.gameObject));
         _ani.Play("dialog_off");
         rep.setmask(3, value: false);
         rep.set_mode(3);
     }
 }
Ejemplo n.º 2
0
 public void dialog3_appear(bool bstat)
 {
     _isBtnMaruUp = false;
     _ani         = ((Component)base.gameObject.transform.parent).GetComponent <Animation>();
     if (bstat)
     {
         _clickmask.unclickable_sec(0.5f);
         ((Component)base.gameObject.transform.parent).GetComponent <UIPanel>().enabled = true;
         base.gameObject.MoveTo(new Vector3(0f, 0f, -2f), 0f, local: true);
         set_dialog3_anime(value: true);
         TweenScale tweenScale = TweenScale.Begin(base.gameObject, 0.4f, Vector3.one);
         tweenScale.animationCurve = UtilCurves.TweenEaseOutBack;
         tweenScale.SetOnFinished(CompleteHandler);
         rep.setmask(3, value: true);
     }
     else
     {
         set_dialog3_anime(value: true);
         iTween.MoveTo(base.gameObject, iTween.Hash("islocal", true, "x", 0f, "y", 2200, "z", -2, "delay", 0.3f, "time", 0f));
         iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 0.6f, "y", 0.6f, "z", 0.6f, "delay", 0.3f, "time", 0f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler_onClose", "oncompletetarget", base.gameObject));
         _ani.Play("dialog3_off");
         rep.setmask(3, value: false);
     }
 }
Ejemplo n.º 3
0
 public void dialog4_appear(bool bstat)
 {
     _isBtnMaruUp = false;
     _ani         = ((Component)base.gameObject.transform.parent).GetComponent <Animation>();
     if (bstat)
     {
         _clickmask.unclickable_sec(0.3f);
         GameObject.Find("dialog4_top").GetComponent <UIPanel>().enabled = true;
         base.gameObject.MoveTo(new Vector3(0f, -39f, -2f), 0f, local: true);
         set_dialog4_anime(value: true);
         iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 1f, "y", 1f, "z", 1f, "time", 0.5f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler", "oncompletetarget", base.gameObject));
         rep.setmask(3, value: true);
     }
     else
     {
         set_dialog4_anime(value: true);
         iTween.MoveTo(base.gameObject, iTween.Hash("islocal", true, "x", 0f, "y", -1100, "z", -2, "delay", 0.3f, "time", 0f));
         iTween.ScaleTo(base.gameObject, iTween.Hash("islocal", true, "x", 0.6f, "y", 0.6f, "z", 0.6f, "delay", 0.3f, "time", 0f, "easetype", iTween.EaseType.easeOutBack, "oncomplete", "CompleteHandler_onClose", "oncompletetarget", base.gameObject));
         _ani.Play("dialog4_off");
         rep.setmask(3, value: false);
     }
 }