/// <summary> /// Ons the run. /// </summary> protected override void PerformRun() { if (this.updaterBehavior == null) { var updater = this.entity.FindComponent <GameActionUpdaterBehavior>(); if (updater == null) { updater = new GameActionUpdaterBehavior(); this.entity.AddComponent(updater); } this.updaterBehavior = updater; } this.updaterBehavior.BeginAction(this); this.ellapsedTime = TimeSpan.Zero; }
/// <summary> /// Ons the run. /// </summary> protected override void PerformRun() { this.ellapsedTime = TimeSpan.Zero; if (this.updaterBehavior == null) { var updater = this.entity.FindComponent<GameActionUpdaterBehavior>(); if (updater == null) { updater = new GameActionUpdaterBehavior(); this.entity.AddComponent(updater); } this.updaterBehavior = updater; } this.updaterBehavior.BeginAction(this); }