Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityStandardAssets.ImageEffects;
- public class HosePuzzle : PuzzleItem{
- public Material unsolvedTexture;
- public Material solvedTexture;
- public Texture2D tex;
- // Use this for initialization
- void Start()
- {
- this.gameObject.GetComponent<MeshRenderer>().material = unsolvedTexture;
- }
- public void solve()
- {
- this.gameObject.GetComponent<MeshRenderer>().material = solvedTexture;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement