Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool inCharacterMode = false;
- public void ChangeViewsButton ( GameObject caller )
- {
- bool valueOnStart = inCharacterMode;
- Debug.Log( "ChangeViewsButton called by: "+caller.name , caller );
- inCharacterMode = !inCharacterMode;
- if( valueOnStart==inCharacterMode ) Debug.LogWarning("value did NOT changed!",this.gameObject);
- else Debug.Log("value changed successfully",this.gameObject);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement