Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityStandardAssets.ImageEffects;
  4.  
  5. public class HosePuzzle : PuzzleItem{
  6.  
  7. public Material unsolvedTexture;
  8. public Material solvedTexture;
  9. public Texture2D tex;
  10. // Use this for initialization
  11. void Start()
  12. {
  13. this.gameObject.GetComponent<MeshRenderer>().material = unsolvedTexture;
  14. }
  15.  
  16. public void solve()
  17. {
  18. this.gameObject.GetComponent<MeshRenderer>().material = solvedTexture;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement