Hu... co to je
var texture1 : Texture2D;
var texture2 : Texture2D;
var alreadyUpdated = false;
var udelat;
function Update() {
if (!alreadyUpdated && Input.GetKey(KeyCode.X)) {
alreadyUpdated = true;
RenderSometing();
udelat = window.setTimeout(function(){alreadyUpdated = false;},30000);
}
}
function RenderSometing() {
yield WaitForSeconds(9);
renderer.material.mainTexture = texture1;
yield WaitForSeconds(9);
renderer.material.mainTexture = texture2;
}