Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Highlight ()
- {
- if (!occupied ) {
- //dont allow moving onto own goal space
- if (CheckIfGoal ())
- if (mycolor == game.GetCurrentPlayerColor ())
- break;
- //able to select this space
- gameObject.renderer.material = myHighlightMaterial;
- highlighted = true;
- }
- if (highlighted == true)
- Debug.Log ("highlighted possible space");
- else
- Debug.Log ("attempt to Highlight failed");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement