public void Randomer() { ResetColors(); flagNumber = Random.Range(0, 3); flagNumberStatic = flagNumber; Debug.Log(flagNumber); switch (flagNumberStatic) { case 0: flag = "FlagPoland"; LoadCountry(flag); Poland pl = new Poland(); trueCapital = pl.GetCapital(); SetCapital(trueCapital); break; case 1: flag = "FlagItaly"; LoadCountry(flag); Italy it = new Italy(); trueCapital = it.GetCapital(); SetCapital(trueCapital); break; case 2: flag = "FlagRomania"; LoadCountry(flag); Romania ro = new Romania(); trueCapital = ro.GetCapital(); SetCapital(trueCapital); break; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Romania obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }