Exemple #1
0
 public static IEnumerator GetScoreBArrayIEnumerator(ScoreBArray scoreBArray)
 {
     yield return new WaitForSeconds(0.2f);
     ScoreB[]  scoreBInner = new ScoreB[0];
     finalScoreB = scoreBInner;
 }
Exemple #2
0
        public static IEnumerator GetScoreBArrayIEnumerator(ScoreBArray scoreBArray)
        {
            ScoreB[] scoreBInner = new ScoreB[scoreBArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(scoreBArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    scoreBInner[count] = new ScoreB(tempObj.GetRawObject(),tempObj);
                    count++;
                }
                yield return new WaitForSeconds(0.2f);
            }
            finalScoreB = scoreBInner;
        }
Exemple #3
0
 public static IEnumerator GetScoreBArrayIEnumerator(ScoreBArray scoreBArray)
 {
     finalScoreB = GetScoreBArray(scoreBArray);
     yield return new WaitForSeconds(0.1f);
 }
Exemple #4
0
 public static ScoreB[] GetScoreBArray(ScoreBArray scoreBArray)
 {
     ScoreB[] scoreBs = new ScoreB[0];
     return scoreBs;
 }
Exemple #5
0
        public static ScoreB[] GetScoreBArray(ScoreBArray scoreBArray)
        {
            ScoreB[] scoreBs = new ScoreB[scoreBArray.ArraySize];

            for (int i=0; i < scoreBArray.ArraySize; i++) {

                IntPtr newPtr = Marshal.ReadIntPtr (scoreBArray.Array, i * Marshal.SizeOf(typeof(IntPtr)));
                scoreBs[i] = new ScoreB(newPtr);
            }
            return scoreBs;
        }
Exemple #6
0
        public static ScoreB[] GetScoreBArray(ScoreBArray scoreBArray)
        {
            ScoreB[] scoreBInner = new ScoreB[scoreBArray.ArraySize];
            AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(scoreBArray.Array);

            int count = 0;
            for (int i = 0;i < bigArray.Length;i++)
            {
                AndroidJavaObject tempJavaObject = bigArray[i];
                AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject());

                for (int j = 0;j < InnerArray.Length;j++)
                {
                    AndroidJavaObject tempObj = InnerArray[j];
                    scoreBInner[count] = new ScoreB(tempObj.GetRawObject(),tempObj);
                    count++;
                }
            }
            return scoreBInner;
        }