1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace FrameWorkDesign.Example
- {
- public interface IGameModel
- {
- BindableProperty<int> killCount { get; }
- BindableProperty<int> Gold { get; }
- BindableProperty<int> Score { get; }
- BindableProperty<int> BestScore { get; }
- }
- public class GameModel : IGameModel
- {
- public BindableProperty<int> killCount { get; } = new BindableProperty<int>()
- {
- Value = 0
- };
- public BindableProperty<int> Gold { get; } = new BindableProperty<int>()
- {
- Value = 0
- };
- public BindableProperty<int> Score { get; } = new BindableProperty<int>()
- {
- Value = 0
- };
- public BindableProperty<int> BestScore { get; } = new BindableProperty<int>()
- {
- Value = 0
- };
- }
- }
|