public void SetAliveTime(float time) { ConditionTime time2 = new ConditionTime { time = time }; this.mCondition = time2; }
protected override void OnUpdate() { if ((this.mCondition != null) && this.mCondition.IsEnd()) { this.mCondition = null; base.End(); } }
protected override void OnInit() { base.OnInit(); this.starttime = 0f; ConditionTime time = new ConditionTime { time = 0.6f }; this.mCondition = time; }
protected override void OnInit() { base.OnInit(); this.starttime = 0f; ConditionTime time = new ConditionTime { time = this.playtime }; this.mCondition1 = time; base.boxList[0].center = new Vector3(0f, 0f, 0f); this.BoxEnable(true); }
protected override void OnUpdate() { if ((this.mCondition != null) && this.mCondition.IsEnd()) { this.mCondition = null; this.overDistance(); } this.starttime += Updater.delta; if (this.starttime > this.playtime) { this.starttime = this.playtime; } base.boxList[0].center = new Vector3(0f, 0f, (this.starttime / this.playtime) * this.centerz); }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 38, Configuration.FieldSeparator), Id, CycleStartTime.HasValue ? CycleStartTime.Value.ToString(Consts.TimeFormatPrecisionSecond, culture) : null, CycleCount.HasValue ? CycleCount.Value.ToString(Consts.NumericFormat, culture) : null, TempMax?.ToDelimitedString(), TempMin?.ToDelimitedString(), LoadNumber.HasValue ? LoadNumber.Value.ToString(Consts.NumericFormat, culture) : null, ConditionTime?.ToDelimitedString(), SterilizeTime?.ToDelimitedString(), ExhaustTime?.ToDelimitedString(), TotalCycleTime?.ToDelimitedString(), DeviceStatus?.ToDelimitedString(), CycleStartDateTime.HasValue ? CycleStartDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, DryTime?.ToDelimitedString(), LeakRate?.ToDelimitedString(), ControlTemperature?.ToDelimitedString(), SterilizerTemperature?.ToDelimitedString(), CycleCompleteTime.HasValue ? CycleCompleteTime.Value.ToString(Consts.TimeFormatPrecisionSecond, culture) : null, UnderTemperature?.ToDelimitedString(), OverTemperature?.ToDelimitedString(), AbortCycle?.ToDelimitedString(), Alarm?.ToDelimitedString(), LongInChargePhase?.ToDelimitedString(), LongInExhaustPhase?.ToDelimitedString(), LongInFastExhaustPhase?.ToDelimitedString(), Reset?.ToDelimitedString(), OperatorUnload?.ToDelimitedString(), DoorOpen?.ToDelimitedString(), ReadingFailure?.ToDelimitedString(), CycleType?.ToDelimitedString(), ThermalRinseTime?.ToDelimitedString(), WashTime?.ToDelimitedString(), InjectionRate?.ToDelimitedString(), ProcedureCode?.ToDelimitedString(), PatientIdentifierList != null ? string.Join(Configuration.FieldRepeatSeparator, PatientIdentifierList.Select(x => x.ToDelimitedString())) : null, AttendingDoctor?.ToDelimitedString(), DilutionFactor?.ToDelimitedString(), FillTime?.ToDelimitedString(), InletTemperature?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
protected override void OnInitBase() { this.bExcuteShow = false; Vector3 vector = this.target.position - base.m_Entity.position; if (vector.magnitude < this.maxdis) { base.End(); } else { base.m_Entity.m_AniCtrl.SetString("Skill", "MoveMiss"); base.m_Entity.m_AniCtrl.SendEvent("Skill", false); this.KillAction(); this.action = new ActionBattle(); this.action.Init(base.m_Entity); this.action.AddActionWaitDelegate(0.5f, () => base.m_Entity.PlayEffect(0x2f4d72)); this.action.AddActionWaitDelegate(0.4f, () => this.Show(false)); this.action.AddActionWaitDelegate(0.6f, delegate { float endx = 0f; float endz = 0f; if (this.move2target) { GameLogic.Release.MapCreatorCtrl.RandomItemSide(GameLogic.Self, this.range, out endx, out endz); } else { Vector3 vector = GameLogic.Release.MapCreatorCtrl.RandomPosition(); endx = vector.x; endz = vector.z; } this.endpos = new Vector3(endx, 0f, endz); }); this.action.AddActionWaitDelegate(0.4f, delegate { base.m_Entity.SetPosition(this.endpos); this.Show(true); base.m_Entity.m_AniCtrl.SetString("Skill", "MoveShow"); base.m_Entity.m_AniCtrl.SendEvent("Skill", false); base.m_Entity.PlayEffect(0x2f4d72); }); ConditionTime time = new ConditionTime { time = 2.5f }; this.mCondition = time; } }
protected override void UpdateProcess(float delta) { base.UpdateProcess(delta); if (!base.GetIsDead()) { base.m_AttackCtrl.UpdateProgress(); if ((this.mCondition != null) && this.mCondition.IsEnd()) { this.mCondition = null; if (this.OnRemoveEvent != null) { this.OnRemoveEvent(base.m_Data.CharID); this.OnRemoveEvent = null; } GameLogic.Release.Entity.RemovePartBody(this, false); } } }