public override void Update(float deltaTime) { base.Update(deltaTime); if (avatar != null) { avatar.Update(deltaTime); } if (SpecialMove != null) { SpecialMove.TickSpecialMove(deltaTime); } bool disableMovement = (SpecialMove != null && SpecialMove.DisableMovement); if (!disableMovement) { this.Move(GameEngine.EngineInstance.GameLevel, deltaTime); // 将controller的空间信息同步给NActor TargetActor.Location = this.Location; } // 更新角色朝向 bool disableRotation = (SpecialMove != null && SpecialMove.DisableRotation); if (!disableRotation) { UpdateTargetRotation(deltaTime); } }