Esempio n. 1
0
 /// <summary>
 /// Unlock the screen to "free" status and player can move around
 /// </summary>
 /// <param name="currentStatus">The status you want to unlock screen from</param>
 /// <returns>true if success</returns>
 public bool Screen_unloock(ScreenLockStatus currentStatus)
 {
     if (screenStatus != currentStatus)
     {
         return(false);
     }
     screenStatus = ScreenLockStatus.free;
     return(true);
 }
Esempio n. 2
0
 /// <summary>
 /// Lock the screen to a state. So some actions are limited
 /// </summary>
 /// <param name="newstatus">new status we want to change the screen</param>
 /// <returns>True if success, false otherwise</returns>
 public bool Screen_lock(ScreenLockStatus newstatus)
 {
     if (screenStatus != ScreenLockStatus.free)
     {
         return(false);
     }
     screenStatus = newstatus;
     return(true);
 }