private MainViewModel()
 {
     _instance     = this;
     _khachHang    = new Dictionary <string, KhachHang>();
     _settingModel = new SettingModel();
     _settingModel.LoadSetting();
 }
 void BallSetting(BallSettingMsg msg)
 {
     settingModel.LoadSetting();
     this.gameObject.transform.localScale = new Vector3(settingModel.BallScale, settingModel.BallScale, settingModel.BallScale);
     _rigidbody.mass        = settingModel.BallMass;
     _rigidbody.drag        = settingModel.BallDrag;
     _rigidbody.angularDrag = settingModel.BallAngularDrag;
 }
Beispiel #3
0
 protected override void OnEnter()
 {
     AddMessage();
     sm.LoadSetting();
     SetValue();
 }