Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 protected override void OnEnter()
 {
     AddMessage();
     sm.LoadSetting();
     SetValue();
 }