Home > other >  Unity button loop
Unity button loop

Time:09-27

Started on a directly when they disappeared, and the Ann can be pressed when the next on a (mainly bosses not achieve the circulation o answer  )

CodePudding user response:

Such as index 0 to 2, reduced to less than 0: index of 2, added to the larger than 2: index set to 0 if that is what you mean?
If (" next ") {
The index (index + 1)=& gt;=list. The Count? Zero: (index + 1);
}
If (" a ") {
The index=(index - 1) & lt; 0? (the list. The Count - 1) : (index - 1);
}

CodePudding user response:

reference 1st floor tq_skye response:
such as index 0 to 2, reduced to less than zero, the index set to 2, added to the larger than 2: index set to 0 if that is what you mean?
If (" next ") {
The index (index + 1)=& gt;=list. The Count? Zero: (index + 1);
}
If (" a ") {
The index=(index - 1) & lt; 0? (the list. The Count - 1) : (index - 1);
}

Yes, I learn c # a little look not to understand

CodePudding user response:

Technology does not pass the

CodePudding user response:

refer to the second floor next to the door of the house next door of pharaoh reply:
Quote: refer to 1st floor tq_skye response:
such as index 0 to 2, reduced to less than zero, the index set to 2, added to the larger than 2: index set to 0 if that is what you mean?
If (" next ") {
The index (index + 1)=& gt;=list. The Count? Zero: (index + 1);
}
If (" a ") {
The index=(index - 1) & lt; 0? (the list. The Count - 1) : (index - 1);
}

Yes, I learn c # a little look not to understand

The original poster simple technology is not hard, c # write ah, so popular point is:
If (" next ") {
The index=(index + 1);
If (index & gt;=list. Count)
{
index=0;
}
}
If (" a ") {
The index=(index - 1);
If (index & lt; 0)
{
The index=list. The Count - 1;
}
}

CodePudding user response:

residual Pi crashing in both reference 4 floor response:
Quote: refer to the second floor next to the door of the house next door of pharaoh reply:

Quote: refer to 1st floor tq_skye response:
such as index 0 to 2, reduced to less than zero, the index set to 2, added to the larger than 2: index set to 0 if that is what you mean?
If (" next ") {
The index (index + 1)=& gt;=list. The Count? Zero: (index + 1);
}
If (" a ") {
The index=(index - 1) & lt; 0? (the list. The Count - 1) : (index - 1);
}

Yes, I learn c # a little look not to understand

The original poster simple technology is not hard, c # write ah, so popular point is:
If (" next ") {
The index=(index + 1);
If (index & gt;=list. Count)
{
index=0;
}
}
If (" a ") {
The index=(index - 1);
If (index & lt; 0)
{
The index=list. The Count - 1;
}
}

This will understand?????? Novice I try to learn more, teachers don't teach these, it's too difficult
  • Related