using System.Collections;
public class testaja : MonoBehaviour {
public string [] puzzleskeletal;
public string akua;
public int integer = 0;
// Use this for initialization
void Start () {
for (int t = 0; t < puzzleskeletal.Length; t++ )
{
string tmp = puzzleskeletal[t];
int r = Random.Range(t, puzzleskeletal.Length);
puzzleskeletal[t] = puzzleskeletal[r];
puzzleskeletal[r] = tmp;
akua = puzzleskeletal [integer];
}
}
// Update is called once per frame
void Update () {
}
public void ke()
{
integer++;
akua = puzzleskeletal [integer];
}
}
0 komentar:
Posting Komentar