/// <summary> /// Starts this instance. /// Use this for initialization. /// </summary> void Start() { handler = new ExampleEventHandler(); SoomlaStore.Initialize(new MuffinRushAssets()); SoomlaProfile.Initialize(); //levelup World mainWorld = WorldGenerator.GenerateCustomWorld(); SoomlaLevelUp.Initialize(mainWorld); // WorldGenerator.Play (mainWorld); tImgDirect = (Texture2D)Resources.Load("SoomlaStore/images/img_direct"); fgoodDog = (Font)Resources.Load("SoomlaStore/GoodDog" + fontSuffix); fgoodDogSmall = (Font)Resources.Load("SoomlaStore/GoodDog_small" + fontSuffix); tLogoNew = (Texture2D)Resources.Load("SoomlaStore/images/soomla_logo_new"); tWhitePixel = (Texture2D)Resources.Load("SoomlaStore/images/white_pixel"); fTitle = (Font)Resources.Load("SoomlaStore/Title" + fontSuffix); tMuffins = (Texture2D)Resources.Load("SoomlaStore/images/Muffins"); fName = (Font)Resources.Load("SoomlaStore/Name" + fontSuffix); fDesc = (Font)Resources.Load("SoomlaStore/Description" + fontSuffix); fBuy = (Font)Resources.Load("SoomlaStore/Buy" + fontSuffix); tBack = (Texture2D)Resources.Load("SoomlaStore/images/back"); tGetMore = (Texture2D)Resources.Load("SoomlaStore/images/GetMore"); tTitle = (Font)Resources.Load("SoomlaStore/Title" + fontSuffix); }
/// <summary> /// Starts this instance. /// Use this for initialization. /// </summary> void Start () { handler = new ExampleEventHandler(); SoomlaStore.Initialize(new MuffinRushAssets()); SoomlaProfile.Initialize (); //levelup World mainWorld = WorldGenerator.GenerateCustomWorld (); SoomlaLevelUp.Initialize (mainWorld); // WorldGenerator.Play (mainWorld); tImgDirect = (Texture2D)Resources.Load("SoomlaStore/images/img_direct"); fgoodDog = (Font)Resources.Load("SoomlaStore/GoodDog" + fontSuffix); fgoodDogSmall = (Font)Resources.Load("SoomlaStore/GoodDog_small" + fontSuffix); tLogoNew = (Texture2D)Resources.Load("SoomlaStore/images/soomla_logo_new"); tWhitePixel = (Texture2D)Resources.Load("SoomlaStore/images/white_pixel"); fTitle = (Font)Resources.Load("SoomlaStore/Title" + fontSuffix); tMuffins = (Texture2D)Resources.Load("SoomlaStore/images/Muffins"); fName = (Font)Resources.Load("SoomlaStore/Name" + fontSuffix); fDesc = (Font)Resources.Load("SoomlaStore/Description" + fontSuffix); fBuy = (Font)Resources.Load("SoomlaStore/Buy" + fontSuffix); tBack = (Texture2D)Resources.Load("SoomlaStore/images/back"); tGetMore = (Texture2D)Resources.Load("SoomlaStore/images/GetMore"); tTitle = (Font)Resources.Load("SoomlaStore/Title" + fontSuffix); }