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; }
public Sleep(MyCharacterController target, int maxeffecttime, CountDownType counttype) : base(target, maxeffecttime, 0, false,counttype) { }
public override void init(MyCharacterController target, int maxeffecttime, float effectomount, bool instant, CountDownType counttype) { base.init(target, maxeffecttime, effectomount, instant,counttype); MaxEffectTime = 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 + "はしびれて動けない!"; }