옵저버 패턴 활용 [Model] public class ScoreModel { int score; public event System.Action<int> OnScoreChanged; public void AddScore(int amount) { score += amount; OnScoreChanged?.Invoke(score); } } [View] using UnityEngine; public class ScoreView : MonoBehaviour { public void UpdateScoreText(int score){} } [Presenter] using UnityEngine; public class ScorePresenter : MonoBehaviour { [SerializeField] ScoreView scoreView; [SerializeField] TargetView targetView; [SerializeField] RankingView rankingView;...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile