Exemplo n.º 1
0
 public void UpdateJoyStick()
 {
     if (model == null)
     {
         return;
     }
     if (model.GetConsumeEnergy() > ActorModel.Model.GetEngery())
     {
         isDisable = true;
         no_enrgy_mask_image.gameObject.SetActive(true);
     }
     else
     {
         no_enrgy_mask_image.gameObject.SetActive(false);
         isDisable = false;
     }
 }