Autor | Zpráva | ||
---|---|---|---|
Dáda Profil * |
#1 · Zasláno: 25. 9. 2013, 21:23:11
Jak mám toto upravit aby se to nespustilo automaticky, ale pouze když zmáčknu klávesu X.
var texture1 : Texture2D; var texture2 : Texture2D; var texture3 : Texture2D; function Start(){ changeTexture(); } function Update () { } function changeTexture () { var i= 1; yield WaitForSeconds(1); renderer.material.mainTexture = texture1; yield WaitForSeconds(1); renderer.material.mainTexture = texture2; yield WaitForSeconds(1); renderer.material.mainTexture = texture3; } |
||
pako Profil * |
#2 · Zasláno: 25. 9. 2013, 22:41:44
Tu je priklad, ale treba kliknut do okna result (aby bolo 'aktivne') a potom stlacit x: http://jsfiddle.net/Zhgcf/
|
||
Časová prodleva: 11 let
|
0