Ejemplo n.º 1
0
    void GetProgress(string itemName)
    {
        GameProgress.Item item = gameProgress.GetData(itemName);
        if (item == null)
        {
            return;
        }
        if (item.name == gameProgressKey)
        {
            if (item.value == lastProgressValue)
            {
                return;
            }

            lastProgressValue = item.value;

            gameProgressValue = item.value;
            OnSetProgress(item.value);
        }
    }
Ejemplo n.º 2
0
 void OnCuadernoWin()
 {
     if (gameProgress.GetData("celular").value == 0)
     {
         if (
             gameProgress.GetData("cuaderno_ingreso").value == 2 &&
             (
                 gameProgress.GetData("cuadernoBiblioteca1").value == 2 ||
                 gameProgress.GetData("cuadernoBiblioteca2").value == 2 ||
                 gameProgress.GetData("cuadernoBiblioteca3").value == 2
             )
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.joaco_biblioteca;
             RingPhone();
             Events.OnSaveNewData("celular", 1);
         }
     }
     else if (gameProgress.GetData("celular").value == 1)
     {
         if (
             gameProgress.GetData("cuaderno_ingreso").value == 2 &&
             gameProgress.GetData("cuadernoBiblioteca1").value == 2 &&
             gameProgress.GetData("cuadernoBiblioteca2").value == 2 &&
             gameProgress.GetData("cuadernoBiblioteca3").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.marian_1;
             RingPhone();
             Events.OnSaveNewData("celular", 2);
         }
     }
     else if (gameProgress.GetData("celular").value == 2)
     {
         if (
             gameProgress.GetData("cuadernoPatio1").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.patio1;
             RingPhone();
             Events.OnSaveNewData("celular", 3);
         }
     }
     else if (gameProgress.GetData("celular").value == 3)
     {
         if (
             gameProgress.GetData("cuadernoPatio2").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.patio2;
             RingPhone();
             Events.OnSaveNewData("celular", 4);
         }
     }
     else if (gameProgress.GetData("celular").value == 4)
     {
         if (
             gameProgress.GetData("cuadernoPatio3").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.patio3;
             RingPhone();
             Events.OnSaveNewData("celular", 5);
         }
     }
     else if (gameProgress.GetData("celular").value == 5)
     {
         if (
             gameProgress.GetData("cuadernoLab1").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.lab1;
             RingPhone();
             Events.OnSaveNewData("celular", 6);
         }
     }
     else if (gameProgress.GetData("celular").value == 6)
     {
         if (
             gameProgress.GetData("cuadernoLab2").value == 2
             )
         {
             dataContent = Data.Instance.phoneConversationsData.content.lab2;
             RingPhone();
             Events.OnSaveNewData("celular", 7);
         }
     }
 }