// Use this for initialization void Start() { for (int i = 0; i < 2; i++) { data = EaFile.Open <TestData> (true); } EaMobile.Initialize(Mobile.Advertisement, Mobile.Leaderboard); EaAdvertisement.Create(AdType.BANNER_TOP, AdType.BANNER_BOTTOM, AdType.INTERSTITIAL); }
void OpenOrCreateData() { data = EaFile.Open <DataDemo> (); data1 = EaFile.Open <DataDemo> ("anotherData"); }