Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public void Highlight ()
  2. {
  3. if (!occupied ) {
  4.  
  5. //dont allow moving onto own goal space
  6. if (CheckIfGoal ())
  7. if (mycolor == game.GetCurrentPlayerColor ())
  8. break;
  9.  
  10. //able to select this space
  11. gameObject.renderer.material = myHighlightMaterial;
  12. highlighted = true;
  13.  
  14. }
  15.  
  16. if (highlighted == true)
  17. Debug.Log ("highlighted possible space");
  18. else
  19. Debug.Log ("attempt to Highlight failed");
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement