示例#1
0
    public void SetCountDownSecond(int second, CountDownType type, System.Action finishCallBack)
    {
        _FinishCallBack = finishCallBack;
        _CountDownTime  = System.TimeSpan.FromSeconds(second);
        _StartCountDown = true;

        StopCoroutine("UpdateCountDown");
        StartCoroutine("UpdateCountDown");
    }
 public StatusBuffBasis(MyCharacterController target, int maxeffecttime, float effectamount, bool instant, CountDownType counttype)
 {
     init(target, maxeffecttime, effectamount, instant, counttype);
 }
 public StatusBuffBasis(MyCharacterController target, int maxeffecttime, int effectamount, bool instant, CountDownType counttype)
     : this(target, maxeffecttime, (float)effectamount, instant, counttype)
 {
 }
 public virtual void init(MyCharacterController target, int maxeffecttime, float effectamount, bool instant,CountDownType counttype)
 {
     Target = target;
     MaxEffectTime = maxeffecttime;
     RemainingEffectTime = MaxEffectTime;
     EffectAmount = effectamount;
     isInstantEffect = instant;
     CountType = counttype;
     isEffectExit = false;
 }
示例#5
0
 public Sleep(MyCharacterController target, int maxeffecttime, CountDownType counttype)
     : base(target, maxeffecttime, 0, false,counttype)
 {
 }
示例#6
0
 public override void init(MyCharacterController target, int maxeffecttime, float effectomount, bool instant, CountDownType counttype)
 {
     base.init(target, maxeffecttime, effectomount, instant,counttype);
     MaxEffectTime = 0;
 }
示例#7
0
 public override void init(MyCharacterController target, int maxeffecttime, float effectomount, bool instant, CountDownType counttype)
 {
     base.init(target, maxeffecttime, effectomount, instant,counttype);
     message = target.Parameter.Name + "はしびれて動けない!";
 }