コード例 #1
0
ファイル: ControlTowerScript.cs プロジェクト: nasa03/RSG
 public void Interact()
 {
     if (scrappaper == false)
     {
         textbox.DisplayText("I could try request permission to take off@@ but i don't know the password");
     }
     else
     {
         textbox.DisplayText("Rquested permission to take off for a 'test run'");
         clearance = true;
     }
 }
コード例 #2
0
 public void Interact()
 {
     if (hangerdoor == false)
     {
         hangerdoor = true;
         textbox.DisplayText("After pressing some buttons you see the hanger door open");
     }
     else
     {
         hangerdoor = false;
         textbox.DisplayText("After pressing some buttons you see the hanger door close");
     }
 }
コード例 #3
0
ファイル: DestroyJet.cs プロジェクト: nasa03/RSG
 public void Interact()
 {
     if (!workshopman)
     {
         textbox.DisplayText("I could have all the C4 in the world and this reactive armor would brush it off@@ Need to figure out where its weak spots are...");
     }
     else if (workshopman && currentcount != 4)
     {
         textbox.DisplayText("I need at least 4 bricks of C4 to blow this thing up, I only have " + currentcount);
     }
     else if (workshopman && currentcount <= 4)
     {
         textbox.DisplayText("Alright it's all set to blow ,better get the hell out of here");
         escape = true;
     }
 }
コード例 #4
0
    public void Interact() //ugly as sin but only called once per interaction so not really that bad. can be optimized later
    {
        // Hanger door, clearance, pilots notes
        if (!hangerdoor && !clearance && !pilotsnotes)
        {
            textbox.DisplayText("Eliminate doesn't necessarily mean 'blow it up'... right?");
        }

        else if (hangerdoor && !clearance && !pilotsnotes)
        {
            textbox.DisplayText("The hanger doors are open, I just gotta figure out how to fly this thing");
        }
        else if (!hangerdoor && clearance && !pilotsnotes)
        {
            textbox.DisplayText("I've got clearance to take off, but the hanger doors are closed and I don't know the take off procedure");
        }
        else if (!hangerdoor && !clearance && pilotsnotes)
        {
            textbox.DisplayText("I know the take off procedure, but the hanger doors are closed");
        }
        else if (!hangerdoor && clearance && pilotsnotes)
        {
            textbox.DisplayText("Got clearance, Got the take off procedure, just need to open the hangar doors");
        }
        else if (hangerdoor && !clearance && pilotsnotes)
        {
            finishlevel.ShowStats(false, false);
        }
        else if (hangerdoor && clearance && !pilotsnotes)
        {
            textbox.DisplayText("Hanger doors are open and I have clearance, but I still need to figure out how to take off");
        }
        else if (hangerdoor && clearance && pilotsnotes)
        {
            finishlevel.ShowStats(false, true);
        }
    }