Advertisement
dantepw

UdemyCode

Jun 24th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.     void Update ()
  2.     {  
  3.         if (myState == States.cell){    state_cell();} //player is inside the cell
  4.        
  5.         /* CELL ACTIONS */     
  6.         else if (myState == States.sheets_0){   state_sheets_0();} //player is examining sheets
  7.         else if (myState == States.lock_0){ state_lock_0();} //player is examining locks
  8.         else if (myState == States.mirror){ state_mirror();} //player is examining mirror
  9.        
  10.         /* CORRIDOR ACTIONS */
  11.         else if (myState == States.sheets_1){   state_sheets_1();} //player is examining sheets in the corridor
  12.         else if (myState == States.lock_1){ state_lock_1();}
  13.         else if (myState == States.cell_mirror){    state_cell_mirror();}
  14.        
  15.         /* ENDING */
  16.         else if (myState == States.freedom){    state_freedom();}
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement