コード例 #1
0
    void Start()
    {
        attempts                = Instantiate(text, Vector3.zero, Quaternion.identity) as GameObject;
        attemptScript           = attempts.GetComponent <TextScript>();
        attemptScript.texture2D = attemp1;

        attemptScript.Hide();

        if (Properties.GameType == Properties.Modes.PlayforMoney)
        {
            Scoring.Get().UpdateAttemptTexture();
        }
    }
コード例 #2
0
 void Update()
 {
     if (suihku == true && ruoka == true)
     {
         time += 1 * Time.deltaTime;
         if (time > 2)
         {
             shower.Hide();
             food.Hide();
             sausage.ShowItem();
             salad.ShowItem();
             beer.ShowItem();
             door.OpenDoor();
             suihku = false;
             time   = 0;
         }
     }
     if (satisfaction >= 3)
     {
         SetFood();
     }
     if (shopping >= 3)
     {
         time += 1 * Time.deltaTime;
         Debug.Log(time);
         if (time > 1)
         {
             sausage.Hide();
             salad.Hide();
             beer.Hide();
             goHome.ShowItem();
             crash.CrashReady();
             anime.Animate();
             shopping = 0;
         }
     }
 }