Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by IKING251 · Nov 09, 2020 at 02:06 PM · c#unity 5scripting problemunity 2d

My Algorithm for checking whole tiles didint work

hello everyone ,

I have a game and this is the appearance and Rules of my game :

game

so accourding to the rules i have to check whole tiles status and check that is it possible for player to put another number or not , if he can put another number i should check which tiles are available for him/her , if a tile isn't available i will add a 1 inside that tile and if it is available i dont do anything or if there is 1 inside a available tile i should clear it so accourding to what i said i write this codes but this codes didnt work correctly :

      private void CheckAndSetDes()
      {
          for (int i = 0; i < 48; i++)
          {
              if (MyLights[i].color == MyWhite)
              {
                  if (i == 0)
                  {
                      CheckAndSetTwoSideDes(i + 1, i + 7 , i);
                  }
                  if (i == 6)
                  {
                      CheckAndSetTwoSideDes(i - 1, i + 7, i);
                  }
                  if (i == 42)
                  {
                      CheckAndSetTwoSideDes(i - 7, i + 1, i);
                  }
                  if (i == 48)
                  {
                      CheckAndSetTwoSideDes(i - 7, i - 1, i);
                  }
                  if (i >= 1 && i <= 5)
                  {
                      CheckAndSetThreeSideDes(i - 1, i + 1, i + 7, i);
                  }
                  if (i == 7 || i == 14 || i == 21 || i == 28 || i == 35)
                  {
                      CheckAndSetThreeSideDes(i - 7, i + 1, i + 7, i);
                  }
                  if (i == 13 || i == 20 || i == 27 || i == 34 || i == 41)
                  {
                      CheckAndSetThreeSideDes(i - 7, i - 1, i + 7, i);
                  }
                  if (i >= 43 && i <= 47)
                  {
                      CheckAndSetThreeSideDes(i - 1, i - 7, i + 1, i);
                  }
                  if ((i >= 8 && i <= 12) || (i >= 15 && i <= 19) || (i >= 22 && i <= 26) || (i >= 29 && i <= 33) || (i >= 36 && i <= 40))
                  {
                      CheckAndSetFourSideDes(i - 1, i + 7, i + 1, i + 7, i);
                  }
              }
              else
              {
                  DesStatus[i] = 1;
              }
          }
      }
  
  
      private void CheckAndSetTwoSideDes(int FirstTile ,  int SecondTile , int MyMainNumber)
      {
          if ((MainNumber.color == MyRed) && (MyLights[FirstTile].color == MyLime ||
                                              MyLights[FirstTile].color == MyGreen ||
                                              MyLights[FirstTile].color == MyLightBlue ||
                                              MyLights[FirstTile].color == MyBlue ||
                                              MyLights[FirstTile].color == MyPink ||
                                              MyLights[FirstTile].color == MyPurple ||
                                         
                                              MyLights[SecondTile].color == MyLime ||
                                              MyLights[SecondTile].color == MyGreen ||
                                              MyLights[SecondTile].color == MyLightBlue ||
                                              MyLights[SecondTile].color == MyBlue ||
                                              MyLights[SecondTile].color == MyPink ||
                                              MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyOrange) && (MyLights[FirstTile].color == MyLime ||
                                                 MyLights[FirstTile].color == MyGreen ||
                                                 MyLights[FirstTile].color == MyLightBlue ||
                                                 MyLights[FirstTile].color == MyBlue ||
                                                 MyLights[FirstTile].color == MyPink ||
                                                 MyLights[FirstTile].color == MyPurple ||
                                            
                                                 MyLights[SecondTile].color == MyLime ||
                                                 MyLights[SecondTile].color == MyGreen ||
                                                 MyLights[SecondTile].color == MyLightBlue ||
                                                 MyLights[SecondTile].color == MyBlue ||
                                                 MyLights[SecondTile].color == MyPink ||
                                                 MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyYellow) &&   (MyLights[FirstTile].color == MyGreen ||                                    
                                                   MyLights[FirstTile].color == MyLightBlue ||
                                                   MyLights[FirstTile].color == MyBlue ||
                                                   MyLights[FirstTile].color == MyPink ||
                                                   MyLights[FirstTile].color == MyPurple ||
                                                 
                                                   MyLights[SecondTile].color == MyGreen ||
                                                   MyLights[SecondTile].color == MyLightBlue ||
                                                   MyLights[SecondTile].color == MyBlue ||
                                                   MyLights[SecondTile].color == MyPink ||
                                                   MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLime) && (MyLights[FirstTile].color == MyRed || 
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyBlue ||
                                               MyLights[FirstTile].color == MyPink ||
                                               MyLights[FirstTile].color == MyPurple ||
                                              
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyBlue ||
                                               MyLights[SecondTile].color == MyPink ||
                                               MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyGreen) && (MyLights[FirstTile].color == MyRed ||
                                                MyLights[FirstTile].color == MyOrange ||
                                                MyLights[FirstTile].color == MyPink ||
                                                MyLights[FirstTile].color == MyPurple ||
                                               
                                                MyLights[SecondTile].color == MyRed ||
                                                MyLights[SecondTile].color == MyOrange ||
                                                MyLights[SecondTile].color == MyPink ||
                                                MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLightBlue) && (MyLights[FirstTile].color == MyRed ||
                                                    MyLights[FirstTile].color == MyOrange ||
                                                    MyLights[FirstTile].color == MyYellow ||
                                                    MyLights[FirstTile].color == MyLime ||
                                                    MyLights[FirstTile].color == MyPink ||
                                                    MyLights[FirstTile].color == MyPurple ||
                                                  
                                                    MyLights[SecondTile].color == MyRed ||
                                                    MyLights[SecondTile].color == MyOrange ||
                                                    MyLights[SecondTile].color == MyYellow ||
                                                    MyLights[SecondTile].color == MyLime ||
                                                    MyLights[SecondTile].color == MyPink ||
                                                    MyLights[SecondTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyBlue) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyGreen ||
                                             
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPink) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyLightBlue ||
                                               MyLights[FirstTile].color == MyGreen ||
                                             
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyLightBlue ||
                                               MyLights[SecondTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPurple) && (MyLights[FirstTile].color == MyRed ||
                                       MyLights[FirstTile].color == MyOrange ||
                                       MyLights[FirstTile].color == MyYellow ||
                                       MyLights[FirstTile].color == MyLime ||
                                       MyLights[FirstTile].color == MyLightBlue ||
                                       MyLights[FirstTile].color == MyGreen ||
  
                                       MyLights[SecondTile].color == MyRed ||
                                       MyLights[SecondTile].color == MyOrange ||
                                       MyLights[SecondTile].color == MyYellow ||
                                       MyLights[SecondTile].color == MyLime ||
                                       MyLights[SecondTile].color == MyLightBlue ||
                                       MyLights[SecondTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
      }
  
      private void CheckAndSetThreeSideDes(int FirstTile , int SecondTile , int ThirdTile, int MyMainNumber)
      {
          if ((MainNumber.color == MyRed) && (MyLights[FirstTile].color == MyLime ||
                                      MyLights[FirstTile].color == MyGreen ||
                                      MyLights[FirstTile].color == MyLightBlue ||
                                      MyLights[FirstTile].color == MyBlue ||
                                      MyLights[FirstTile].color == MyPink ||
                                      MyLights[FirstTile].color == MyPurple ||
  
                                      MyLights[SecondTile].color == MyLime ||
                                      MyLights[SecondTile].color == MyGreen ||
                                      MyLights[SecondTile].color == MyLightBlue ||
                                      MyLights[SecondTile].color == MyBlue ||
                                      MyLights[SecondTile].color == MyPink ||
                                      MyLights[SecondTile].color == MyPurple ||
  
                                      MyLights[ThirdTile].color == MyLime ||
                                      MyLights[ThirdTile].color == MyGreen ||
                                      MyLights[ThirdTile].color == MyLightBlue ||
                                      MyLights[ThirdTile].color == MyBlue ||
                                      MyLights[ThirdTile].color == MyPink ||
                                      MyLights[ThirdTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyOrange) && (MyLights[FirstTile].color == MyLime ||
                                                 MyLights[FirstTile].color == MyGreen ||
                                                 MyLights[FirstTile].color == MyLightBlue ||
                                                 MyLights[FirstTile].color == MyBlue ||
                                                 MyLights[FirstTile].color == MyPink ||
                                                 MyLights[FirstTile].color == MyPurple ||
  
                                                 MyLights[SecondTile].color == MyLime ||
                                                 MyLights[SecondTile].color == MyGreen ||
                                                 MyLights[SecondTile].color == MyLightBlue ||
                                                 MyLights[SecondTile].color == MyBlue ||
                                                 MyLights[SecondTile].color == MyPink ||
                                                 MyLights[SecondTile].color == MyPurple ||
  
                                                 MyLights[ThirdTile].color == MyLime ||
                                                 MyLights[ThirdTile].color == MyGreen ||
                                                 MyLights[ThirdTile].color == MyLightBlue ||
                                                 MyLights[ThirdTile].color == MyBlue ||
                                                 MyLights[ThirdTile].color == MyPink ||
                                                 MyLights[ThirdTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyYellow) && (MyLights[FirstTile].color == MyGreen ||
                                                   MyLights[FirstTile].color == MyLightBlue ||
                                                   MyLights[FirstTile].color == MyBlue ||
                                                   MyLights[FirstTile].color == MyPink ||
                                                   MyLights[FirstTile].color == MyPurple ||
  
                                                   MyLights[SecondTile].color == MyGreen ||
                                                   MyLights[SecondTile].color == MyLightBlue ||
                                                   MyLights[SecondTile].color == MyBlue ||
                                                   MyLights[SecondTile].color == MyPink ||
                                                   MyLights[SecondTile].color == MyPurple ||
  
                                                   MyLights[ThirdTile].color == MyGreen ||
                                                   MyLights[ThirdTile].color == MyLightBlue ||
                                                   MyLights[ThirdTile].color == MyBlue ||
                                                   MyLights[ThirdTile].color == MyPink ||
                                                   MyLights[ThirdTile].color == MyPurple 
                                                   ))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLime) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyBlue ||
                                               MyLights[FirstTile].color == MyPink ||
                                               MyLights[FirstTile].color == MyPurple ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyBlue ||
                                               MyLights[SecondTile].color == MyPink ||
                                               MyLights[SecondTile].color == MyPurple ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyBlue ||
                                               MyLights[ThirdTile].color == MyPink ||
                                               MyLights[ThirdTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyGreen) && (MyLights[FirstTile].color == MyRed ||
                                                MyLights[FirstTile].color == MyOrange ||
                                                MyLights[FirstTile].color == MyPink ||
                                                MyLights[FirstTile].color == MyPurple ||
  
                                                MyLights[SecondTile].color == MyRed ||
                                                MyLights[SecondTile].color == MyOrange ||
                                                MyLights[SecondTile].color == MyPink ||
                                                MyLights[SecondTile].color == MyPurple ||
  
                                                MyLights[ThirdTile].color == MyRed ||
                                                MyLights[ThirdTile].color == MyOrange ||
                                                MyLights[ThirdTile].color == MyPink ||
                                                MyLights[ThirdTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLightBlue) && (MyLights[FirstTile].color == MyRed ||
                                                    MyLights[FirstTile].color == MyOrange ||
                                                    MyLights[FirstTile].color == MyYellow ||
                                                    MyLights[FirstTile].color == MyLime ||
                                                    MyLights[FirstTile].color == MyPink ||
                                                    MyLights[FirstTile].color == MyPurple ||
  
                                                    MyLights[SecondTile].color == MyRed ||
                                                    MyLights[SecondTile].color == MyOrange ||
                                                    MyLights[SecondTile].color == MyYellow ||
                                                    MyLights[SecondTile].color == MyLime ||
                                                    MyLights[SecondTile].color == MyPink ||
                                                    MyLights[SecondTile].color == MyPurple ||
  
                                                    MyLights[ThirdTile].color == MyRed ||
                                                    MyLights[ThirdTile].color == MyOrange ||
                                                    MyLights[ThirdTile].color == MyYellow ||
                                                    MyLights[ThirdTile].color == MyLime ||
                                                    MyLights[ThirdTile].color == MyPink ||
                                                    MyLights[ThirdTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyBlue) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyGreen ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyGreen ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyLime ||
                                               MyLights[ThirdTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPink) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyLightBlue ||
                                               MyLights[FirstTile].color == MyGreen ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyLightBlue ||
                                               MyLights[SecondTile].color == MyGreen ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyLime ||
                                               MyLights[ThirdTile].color == MyLightBlue ||
                                               MyLights[ThirdTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPurple) && (MyLights[FirstTile].color == MyRed ||
                                       MyLights[FirstTile].color == MyOrange ||
                                       MyLights[FirstTile].color == MyYellow ||
                                       MyLights[FirstTile].color == MyLime ||
                                       MyLights[FirstTile].color == MyLightBlue ||
                                       MyLights[FirstTile].color == MyGreen ||
  
                                       MyLights[SecondTile].color == MyRed ||
                                       MyLights[SecondTile].color == MyOrange ||
                                       MyLights[SecondTile].color == MyYellow ||
                                       MyLights[SecondTile].color == MyLime ||
                                       MyLights[SecondTile].color == MyLightBlue ||
                                       MyLights[SecondTile].color == MyGreen ||
  
                                       MyLights[ThirdTile].color == MyRed ||
                                       MyLights[ThirdTile].color == MyOrange ||
                                       MyLights[ThirdTile].color == MyYellow ||
                                       MyLights[ThirdTile].color == MyLime ||
                                       MyLights[ThirdTile].color == MyLightBlue ||
                                       MyLights[ThirdTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
      }
  
      private void CheckAndSetFourSideDes(int FirstTile, int SecondTile, int ThirdTile , int FourthTile, int MyMainNumber)
      {
          if ((MainNumber.color == MyRed) && (MyLights[FirstTile].color == MyLime ||
                                              MyLights[FirstTile].color == MyGreen ||
                                              MyLights[FirstTile].color == MyLightBlue ||
                                              MyLights[FirstTile].color == MyBlue ||
                                              MyLights[FirstTile].color == MyPink ||
                                              MyLights[FirstTile].color == MyPurple ||
                                           
                                              MyLights[SecondTile].color == MyLime ||
                                              MyLights[SecondTile].color == MyGreen ||
                                              MyLights[SecondTile].color == MyLightBlue ||
                                              MyLights[SecondTile].color == MyBlue ||
                                              MyLights[SecondTile].color == MyPink ||
                                              MyLights[SecondTile].color == MyPurple ||
                                           
                                           
                                              MyLights[ThirdTile].color == MyLime ||
                                              MyLights[ThirdTile].color == MyGreen ||
                                              MyLights[ThirdTile].color == MyLightBlue ||
                                              MyLights[ThirdTile].color == MyBlue ||
                                              MyLights[ThirdTile].color == MyPink ||
                                              MyLights[ThirdTile].color == MyPurple ||
                                           
                                              MyLights[FourthTile].color == MyLime ||
                                              MyLights[FourthTile].color == MyGreen ||
                                              MyLights[FourthTile].color == MyLightBlue ||
                                              MyLights[FourthTile].color == MyBlue ||
                                              MyLights[FourthTile].color == MyPink ||
                                              MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyOrange) && (MyLights[FirstTile].color == MyLime ||
                                                 MyLights[FirstTile].color == MyGreen ||
                                                 MyLights[FirstTile].color == MyLightBlue ||
                                                 MyLights[FirstTile].color == MyBlue ||
                                                 MyLights[FirstTile].color == MyPink ||
                                                 MyLights[FirstTile].color == MyPurple ||
  
                                                 MyLights[SecondTile].color == MyLime ||
                                                 MyLights[SecondTile].color == MyGreen ||
                                                 MyLights[SecondTile].color == MyLightBlue ||
                                                 MyLights[SecondTile].color == MyBlue ||
                                                 MyLights[SecondTile].color == MyPink ||
                                                 MyLights[SecondTile].color == MyPurple ||
  
                                                 MyLights[ThirdTile].color == MyLime ||
                                                 MyLights[ThirdTile].color == MyGreen ||
                                                 MyLights[ThirdTile].color == MyLightBlue ||
                                                 MyLights[ThirdTile].color == MyBlue ||
                                                 MyLights[ThirdTile].color == MyPink ||
                                                 MyLights[ThirdTile].color == MyPurple ||
  
                                                 MyLights[FourthTile].color == MyLime ||
                                                 MyLights[FourthTile].color == MyGreen ||
                                                 MyLights[FourthTile].color == MyLightBlue ||
                                                 MyLights[FourthTile].color == MyBlue ||
                                                 MyLights[FourthTile].color == MyPink ||
                                                 MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyYellow) && (MyLights[FirstTile].color == MyGreen ||
                                                   MyLights[FirstTile].color == MyLightBlue ||
                                                   MyLights[FirstTile].color == MyBlue ||
                                                   MyLights[FirstTile].color == MyPink ||
                                                   MyLights[FirstTile].color == MyPurple ||
  
                                                   MyLights[SecondTile].color == MyGreen ||
                                                   MyLights[SecondTile].color == MyLightBlue ||
                                                   MyLights[SecondTile].color == MyBlue ||
                                                   MyLights[SecondTile].color == MyPink ||
                                                   MyLights[SecondTile].color == MyPurple ||
  
                                                   MyLights[ThirdTile].color == MyGreen ||
                                                   MyLights[ThirdTile].color == MyLightBlue ||
                                                   MyLights[ThirdTile].color == MyBlue ||
                                                   MyLights[ThirdTile].color == MyPink ||
                                                   MyLights[ThirdTile].color == MyPurple ||
  
                                                   MyLights[FourthTile].color == MyGreen ||
                                                   MyLights[FourthTile].color == MyLightBlue ||
                                                   MyLights[FourthTile].color == MyBlue ||
                                                   MyLights[FourthTile].color == MyPink ||
                                                   MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLime) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyBlue ||
                                               MyLights[FirstTile].color == MyPink ||
                                               MyLights[FirstTile].color == MyPurple ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyBlue ||
                                               MyLights[SecondTile].color == MyPink ||
                                               MyLights[SecondTile].color == MyPurple ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyBlue ||
                                               MyLights[ThirdTile].color == MyPink ||
                                               MyLights[ThirdTile].color == MyPurple ||
  
                                               MyLights[FourthTile].color == MyRed ||
                                               MyLights[FourthTile].color == MyOrange ||
                                               MyLights[FourthTile].color == MyYellow ||
                                               MyLights[FourthTile].color == MyBlue ||
                                               MyLights[FourthTile].color == MyPink ||
                                               MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyGreen) && (MyLights[FirstTile].color == MyRed ||
                                                MyLights[FirstTile].color == MyOrange ||
                                                MyLights[FirstTile].color == MyPink ||
                                                MyLights[FirstTile].color == MyPurple ||
  
                                                MyLights[SecondTile].color == MyRed ||
                                                MyLights[SecondTile].color == MyOrange ||
                                                MyLights[SecondTile].color == MyPink ||
                                                MyLights[SecondTile].color == MyPurple ||
  
                                                MyLights[ThirdTile].color == MyRed ||
                                                MyLights[ThirdTile].color == MyOrange ||
                                                MyLights[ThirdTile].color == MyPink ||
                                                MyLights[ThirdTile].color == MyPurple ||
  
                                                MyLights[FourthTile].color == MyRed ||
                                                MyLights[FourthTile].color == MyOrange ||
                                                MyLights[FourthTile].color == MyPink ||
                                                MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyLightBlue) && (MyLights[FirstTile].color == MyRed ||
                                                    MyLights[FirstTile].color == MyOrange ||
                                                    MyLights[FirstTile].color == MyYellow ||
                                                    MyLights[FirstTile].color == MyLime ||
                                                    MyLights[FirstTile].color == MyPink ||
                                                    MyLights[FirstTile].color == MyPurple ||
  
                                                    MyLights[SecondTile].color == MyRed ||
                                                    MyLights[SecondTile].color == MyOrange ||
                                                    MyLights[SecondTile].color == MyYellow ||
                                                    MyLights[SecondTile].color == MyLime ||
                                                    MyLights[SecondTile].color == MyPink ||
                                                    MyLights[SecondTile].color == MyPurple ||
  
                                                    MyLights[ThirdTile].color == MyRed ||
                                                    MyLights[ThirdTile].color == MyOrange ||
                                                    MyLights[ThirdTile].color == MyYellow ||
                                                    MyLights[ThirdTile].color == MyLime ||
                                                    MyLights[ThirdTile].color == MyPink ||
                                                    MyLights[ThirdTile].color == MyPurple ||
  
                                                    MyLights[FourthTile].color == MyRed ||
                                                    MyLights[FourthTile].color == MyOrange ||
                                                    MyLights[FourthTile].color == MyYellow ||
                                                    MyLights[FourthTile].color == MyLime ||
                                                    MyLights[FourthTile].color == MyPink ||
                                                    MyLights[FourthTile].color == MyPurple))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
  
          if ((MainNumber.color == MyBlue) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyGreen ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyGreen ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyLime ||
                                               MyLights[ThirdTile].color == MyGreen ||
  
                                               MyLights[FourthTile].color == MyRed ||
                                               MyLights[FourthTile].color == MyOrange ||
                                               MyLights[FourthTile].color == MyYellow ||
                                               MyLights[FourthTile].color == MyLime ||
                                               MyLights[FourthTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPink) && (MyLights[FirstTile].color == MyRed ||
                                               MyLights[FirstTile].color == MyOrange ||
                                               MyLights[FirstTile].color == MyYellow ||
                                               MyLights[FirstTile].color == MyLime ||
                                               MyLights[FirstTile].color == MyLightBlue ||
                                               MyLights[FirstTile].color == MyGreen ||
  
                                               MyLights[SecondTile].color == MyRed ||
                                               MyLights[SecondTile].color == MyOrange ||
                                               MyLights[SecondTile].color == MyYellow ||
                                               MyLights[SecondTile].color == MyLime ||
                                               MyLights[SecondTile].color == MyLightBlue ||
                                               MyLights[SecondTile].color == MyGreen ||
  
                                               MyLights[ThirdTile].color == MyRed ||
                                               MyLights[ThirdTile].color == MyOrange ||
                                               MyLights[ThirdTile].color == MyYellow ||
                                               MyLights[ThirdTile].color == MyLime ||
                                               MyLights[ThirdTile].color == MyLightBlue ||
                                               MyLights[ThirdTile].color == MyGreen ||
  
                                               MyLights[FourthTile].color == MyRed ||
                                               MyLights[FourthTile].color == MyOrange ||
                                               MyLights[FourthTile].color == MyYellow ||
                                               MyLights[FourthTile].color == MyLime ||
                                               MyLights[FourthTile].color == MyLightBlue ||
                                               MyLights[FourthTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
          if ((MainNumber.color == MyPurple) && (MyLights[FirstTile].color == MyRed ||
                                                 MyLights[FirstTile].color == MyOrange ||
                                                 MyLights[FirstTile].color == MyYellow ||
                                                 MyLights[FirstTile].color == MyLime ||
                                                 MyLights[FirstTile].color == MyLightBlue ||
                                                 MyLights[FirstTile].color == MyGreen ||
                                               
                                                 MyLights[SecondTile].color == MyRed ||
                                                 MyLights[SecondTile].color == MyOrange ||
                                                 MyLights[SecondTile].color == MyYellow ||
                                                 MyLights[SecondTile].color == MyLime ||
                                                 MyLights[SecondTile].color == MyLightBlue ||
                                                 MyLights[SecondTile].color == MyGreen ||
  
                                                 MyLights[ThirdTile].color == MyRed ||
                                                 MyLights[ThirdTile].color == MyOrange ||
                                                 MyLights[ThirdTile].color == MyYellow ||
                                                 MyLights[ThirdTile].color == MyLime ||
                                                 MyLights[ThirdTile].color == MyLightBlue ||
                                                 MyLights[ThirdTile].color == MyGreen ||
  
                                                 MyLights[FourthTile].color == MyRed ||
                                                 MyLights[FourthTile].color == MyOrange ||
                                                 MyLights[FourthTile].color == MyYellow ||
                                                 MyLights[FourthTile].color == MyLime ||
                                                 MyLights[FourthTile].color == MyLightBlue ||
                                                 MyLights[FourthTile].color == MyGreen))
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = "1";
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
          else
          {
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().text = string.Empty;
              MyDestinations[MyMainNumber].GetComponentInChildren<Text>().color = MyWhite;
              MyLights[MyMainNumber].color = MyWhite;
          }
  
      }
  
      private bool ReturnGameStatusFinished()
      {
          int counter = 0;
          for (int i = 0; i < DesStatus[i]; i++)
          {
              if (DesStatus[i] == 1)
              {
                  counter = counter + 1;
              }
              else
              {
                  continue;
              }
          }
          if (counter == 49)
          {
              return true;
          }
          else
          {
              return false;
          }
      }

so could you help me to fix this problem.

in fact in my game i will create a random number between 1 to 9 with a random color and i want to check that is it possible for player to put that number or not accouding to the rules for example if the random number color is red and the player want to put that number inside tile 1 then i should check color rule for tile number 2 and 8 and if the color of that two tiles are in the same color group of random number i will let player to put that number inside that tile but for example if the color of tile 2 was green i should put a 1 inside tile 1 to show that , this tile is not available.

so please help me to fix this problem i check 5 diffrent ways but none of them work.

appearance01.jpg (266.3 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

854 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Instantiated object not showing in scene or hierarchy 2 Answers

How to make the tower shoot at the one who is closer to the finish line? 0 Answers

Built project, now scripts are missing. 2 Answers

dont understand copy a collision on an array, i want to store data in the array, change it but not the gameobject that collide... help 0 Answers

Values not moving to Game Over screen or the Game over doesn't somehow work. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges