ae77a68e01
files from the uniity asset store are grouped and added the files used for terrain and texturing bug fixed for door opening in weird directions
17 lines
410 B
C#
17 lines
410 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
public class SimpleTextureDrawing : MonoBehaviour
|
|
{
|
|
public Material aMaterial;
|
|
public RenderTexture[] aTextures;
|
|
|
|
void OnGUI()
|
|
{
|
|
Graphics.DrawTexture(new Rect(Screen.width - 300, -2, 300, 300), aTextures[0], aMaterial);
|
|
Graphics.DrawTexture(new Rect(Screen.width - 300, 302, 300, 300), aTextures[1], aMaterial);
|
|
}
|
|
}
|
|
|