Advertisement
Guest User

inCharacterMode drama

a guest
Feb 27th, 2020
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. public bool inCharacterMode = false;
  2. public void ChangeViewsButton ( GameObject caller )
  3. {
  4.     bool valueOnStart = inCharacterMode;
  5.     Debug.Log( "ChangeViewsButton called by: "+caller.name , caller );
  6.  
  7.     inCharacterMode = !inCharacterMode;
  8.  
  9.     if( valueOnStart==inCharacterMode ) Debug.LogWarning("value did NOT changed!",this.gameObject);
  10.     else Debug.Log("value changed successfully",this.gameObject);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement