void NotMonikaED()
    {
        RefusedMonika += 1;
        string dia = "";

        if (RefusedMonika == 1)
        {
            dia = "Eh? I'll ask you again, is Monika the best girl?";
        }
        else if (RefusedMonika == 2)
        {
            dia = "Seriously? Isn't Monika the best girl?";
        }
        else if (RefusedMonika == 3)
        {
            dia = "Very funny, Courtney.";
        }
        else
        {
            for (int i = 0; i < RefusedMonika - 3; i++)
            {
                dia += "<color=#ff0000ff>JUST MONIKA.</color> ";
            }
        }
        PopUpBubbleManager.CreatePop("", dia, MonikaED, true, NotMonikaED);
    }
    /// <summary>
    /// Start is called on the frame when a script is enabled just before
    /// any of the Update methods is called the first time.
    /// </summary>
    void Start()
    {
        string dia = "Hi, I just want to sure if Monika is the only best girl.";

        dia += " JUST press OK to continue, REA~LLY an easy task.";
        PopUpBubbleManager.CreatePop("", dia, MonikaED, true, NotMonikaED);
    }
 public void TryDisconnectToKart()
 {
     if (MainManager.instance.currentStat == "Ready")
     {
         bool x = AndroidDo.instance.BtDisconnect();
         if (x)
         {
             MainManager.instance.UpdateStat("No Connection");
         }
     }
     else
     {
         PopUpBubbleManager.CreatePop("", "You are not ready to disconnect.", null, false);
     }
 }
Esempio n. 4
0
    //"No Bluetooth" "No Connection" "Ready"


    // Use this for initialization
    void Start()
    {
        string dia = "Welcome to Dual Wheel Roller app, version " + GameManager.version;

        dia += ". To complete the preparation, press Settings on the top left first.";
        PopUpBubbleManager.CreatePop("", dia, null, false);

        Resources.UnloadUnusedAssets();
        LboostScrollBar  = GameObject.Find("Canvas/Lboost").GetComponent <Scrollbar>();
        RboostScrollBar  = GameObject.Find("Canvas/Rboost").GetComponent <Scrollbar>();
        MboostScrollBar  = GameObject.Find("Canvas/Mboost").GetComponent <Scrollbar>();
        servoScrollBar   = GameObject.Find("Canvas/Servo").GetComponent <Scrollbar>();
        scaleScrollBar   = GameObject.Find("Canvas/Scale").GetComponent <Scrollbar>();
        LboostDisplay    = GameObject.Find("Canvas/Lboost/value").GetComponent <Text>();
        RboostDisplay    = GameObject.Find("Canvas/Rboost/value").GetComponent <Text>();
        MboostDisplay    = GameObject.Find("Canvas/Mboost/value").GetComponent <Text>();
        servoDisplay     = GameObject.Find("Canvas/Servo/value").GetComponent <Text>();
        scaleDisplay     = GameObject.Find("Canvas/Scale/value").GetComponent <Text>();
        usingFuncDisplay = GameObject.Find("Canvas/UsingFunc/value").GetComponent <Text>();
        statusDisplay    = GameObject.Find("Canvas/Status/value").GetComponent <Text>();
        joyStick         = GameObject.Find("Canvas/SimpleTouch Joystick").GetComponent <SimpleTouchController>();
    }
 public void TryCoonectToKart()
 {
     if (MainManager.instance.currentStat == "No Connection")
     {
         AndroidDo.instance.makeText("Now trying connect to kart.");
         bool x = AndroidDo.instance.BtTryConnectToKart();
         if (x)
         {
             MainManager.instance.UpdateStat("Ready");
             PopUpBubbleManager.CreatePop("", "We are all set. Better start driving.", null, false);
             ToggleMenu();
         }
         else
         {
             PopUpBubbleManager.CreatePop("", "Failed to connect to the kart.", null, false);
         }
     }
     else
     {
         //AndroidDo.instance.makeText("Please turn on BT and make Status = No connection");
         PopUpBubbleManager.CreatePop("", "Please turn on BT (press init BT first)", null, false);
     }
 }
    void MonikaED()
    {
        string dia = "See, that's easy, right?";

        PopUpBubbleManager.CreatePop("MONIKAED", dia, null, false);
    }