Esempio n. 1
0
    //===========================================================================================================================//
    //CLEAR THE MESS!

    public void ClearAll()
    {
        AudioD().OnClick();

        Destroy(Nasied);
        Destroy(Sardened);
        Destroy(Ayamed);
        Destroy(Sayured);
        Destroy(Kerupuked);
        Destroy(Minumed);
        Destroy(TelurMatang);
        Destroy(Mied);
        Destroy(NasiGorenged);

        NasiP.SetActive(false);
        NasiG.SetActive(false);
        telurGoreng.SetActive(false);

        Nasied      = null;
        Ayamed      = null;
        Sardened    = null;
        TelurMatang = null;
        Sayured     = null;
        Kerupuked   = null;
        Minumed     = null;
        Mied        = null;

        Panel1 = false;
        Panel2 = false;
        Panel3 = false;
        Panel4 = false;

        Debug.Log("Reset...");
    }
Esempio n. 2
0
    void GameStart()
    {
        Minigame.SetActive(false);
        Bumbu1.SetActive(false);
        Bumbu2.SetActive(false);
        telurGoreng.SetActive(false);
        NasiP.SetActive(false);
        NasiG.SetActive(false);

        Panel1 = false;
        Panel2 = false;
        Panel3 = false;
        Panel4 = false;

        score = 0;

        Achieve.value = score;

        startPos = AIoned.transform.position;
        Debug.Log(startPos);

        AI1 = true;
        AI2 = false;
        AI3 = false;
        AI4 = false;

        Time.timeScale = 1;


        if (Level == 1)
        {
            Achieve.maxValue = 45;
            timerF           = 60;
            Hitung           = true;
        }
        if (Level == 2)
        {
            Achieve.maxValue = 60;
            timerF           = 100;
            Hitung           = true;
        }
        if (Level == 3)
        {
            Achieve.maxValue = 100;
            timerF           = 140;
            Hitung           = true;
        }

        Winlose.SetActive(false);
        B0.SetActive(false);
        B1.SetActive(false);
        B2.SetActive(false);
        B3.SetActive(false);

        PauseBG.SetActive(true);
        Pauz.SetActive(false);
    }
Esempio n. 3
0
    IEnumerator NasiGorProc()
    {
        Debug.Log("Menggoreng...");
        yield return(new WaitForSeconds(3));

        NasiP.SetActive(false);
        NasiG.SetActive(true);
        Debug.Log("Nasi Goreng Jadi");
        Clickable = true;
    }
Esempio n. 4
0
 public void minigameShow7()
 {
     StartCoroutine(MinigameHide());
     Orderan = 7;
     Minigame.SetActive(true);
     Bumbu1.SetActive(true);
     Bumbu2.SetActive(false);
     telurGoreng.SetActive(false);
     NasiP.SetActive(false);
     Debug.Log("Orderan ke " + Orderan);
     AudioD().OnClick();
 }
Esempio n. 5
0
 void NasiGor()
 {
     if (telurGoreng.activeInHierarchy == true)
     {
         Debug.Log("ada telur disitu!");
     }
     else
     {
         NasiP.SetActive(true);
         AudioD().MasakSound();
         StartCoroutine(NasiGorProc());
     }
 }
Esempio n. 6
0
    void ClearOk()
    {
        AudioD().OnClick();

        Destroy(Nasied);
        Destroy(Sardened);
        Destroy(Ayamed);
        Destroy(Sayured);
        Destroy(Kerupuked);
        Destroy(Minumed);
        Destroy(TelurMatang);
        Destroy(Mied);
        Destroy(NasiGorenged);

        NasiP.SetActive(false);
        NasiG.SetActive(false);
        telurGoreng.SetActive(false);

        Nasied      = null;
        Ayamed      = null;
        Sardened    = null;
        TelurMatang = null;
        Sayured     = null;
        Kerupuked   = null;
        Minumed     = null;
        Mied        = null;

        Panel1 = false;
        Panel2 = false;
        Panel3 = false;
        Panel4 = false;

        StartCoroutine(MakeAIleave());

        Debug.Log("Done...");
    }