옵저버 패턴 활용 [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;...
OnScore Changed
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
Get in touch with OnScore
Contact OnScore, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack