public void Notify(Observer_Unit observer) { Observer_Unit.Package package = new Observer_Unit.Package() { Unit = Rows.FirstOrDefault_R(observer.Subject), }; observer.SubjectUpdated(package); }
private void SubjectChanged(Observer_Unit.Package package) { agentInfo.UnitInfo = package.Unit; if (UnitInfo.Quality <= 0) { // Dead(); //NavAgent?.Stop(); Animator.Play(AnimState.Dead); } else { CheckAttack(); SetLabel(); } }