本文整理汇总了C#中Options.Load方法的典型用法代码示例。如果您正苦于以下问题:C# Options.Load方法的具体用法?C# Options.Load怎么用?C# Options.Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options.Load方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
//.........这里部分代码省略.........
tmpArray[i].GetComponent<SpriteRenderer>().sprite = ColourBackground;
//tmpArray[i].GetComponent<SpriteRenderer>().sprite = profilePicture; // for funny times, uncomment this line
floorTiles[x, y] = tmpArray[i];
}
#endregion
for (int i = 0; i < 1; i++)
{
Vector3 pos = floorTiles[i * 11, 0].transform.position;
ShopController.theScreens.Add(new ScreenObject((i + 1), 0));
ShopController.theScreens[i].SetPosition((int)pos.x, (int)pos.y);
}
ShopController.theScreens[0].Upgrade();
ShopController.theScreens[0].UpgradeComplete();
// NYAH
NextDay(false, false);
// do staff intro thing here
popupController.ShowPopup(99, "Welcome!!! This is your cinema!\nLets get started by hiring some staff shall we?");
foodArea = null;
}
else
{
statusCode = 0;
PlayerData data = ButtonScript.loadGame;
carpetColour = new Color(data.carpetColour[0], data.carpetColour[1], data.carpetColour[2]);
shopController.LoadDecorations(data.hasRedCarpet, data.posters);
isMarbleFloor = data.marbleFloor;
customerController.reputation = data.reputation;
foodArea = data.foodArea;
options.Load(data.options);
int boxLevel = data.boxOfficeLevel;
OtherObjectScript.CreateStaffSlot(1, new Vector3(37.8f, 12.3f, 0));
for (int i = 0; i < boxLevel - 1; i++)
{
OtherObjectScript.UpgradeBoxOffice();
}
#region Floor Tiles
// initialise the floor tiles
floorTiles = new GameObject[40, 80];
for (int i = 0; i < tmpArray.Length; i++)
{
string name = tmpArray[i].name;
string[] tmp = name.Split('~');
int x = int.Parse(tmp[1]);
int y = int.Parse(tmp[2]);
tmpArray[i].GetComponent<SpriteRenderer>().color = carpetColour;
if (!isMarbleFloor)
{
tmpArray[i].GetComponent<SpriteRenderer>().sprite = ColourBackground;
}