1.
var yourLove : GameObject;
var myResponse ; boolean = true;
function OnGUI(){
if(yourLove.alpha>0){
myResponse = true;
}
else(yourLove.alpha=0){
myResponse = false;
Application.Loadlevel("GameOver");
}
}
2.
var yourEye : Camera;
var Lover : GUISkin;
function Update(){
if(Time=+1 day){
yourEye.position++;}
function OnGUI(){
GUI.skin=Lover;
if (Time<=3months){
GUI.Texture(IdealLover,20,32D,23,32);
GUI.Text("I love you forever.");}
if(Time<=1 year){
GUI.Texture(OKLover,21,32D,23,32);
GUI.Text("I love you at this moment.");}
if(Time>1year){
GUI.enabled = false;}
}
---------
註:GUI=game user interface
這程式應該真的可以用....
var yourLove : GameObject;
var myResponse ; boolean = true;
function OnGUI(){
if(yourLove.alpha>0){
myResponse = true;
}
else(yourLove.alpha=0){
myResponse = false;
Application.Loadlevel("GameOver");
}
}
2.
var yourEye : Camera;
var Lover : GUISkin;
function Update(){
if(Time=+1 day){
yourEye.position++;}
function OnGUI(){
GUI.skin=Lover;
if (Time<=3months){
GUI.Texture(IdealLover,20,32D,23,32);
GUI.Text("I love you forever.");}
if(Time<=1 year){
GUI.Texture(OKLover,21,32D,23,32);
GUI.Text("I love you at this moment.");}
if(Time>1year){
GUI.enabled = false;}
}
---------
註:GUI=game user interface
這程式應該真的可以用....