本文整理汇总了C#中Clock.SetPosition方法的典型用法代码示例。如果您正苦于以下问题:C# Clock.SetPosition方法的具体用法?C# Clock.SetPosition怎么用?C# Clock.SetPosition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Clock
的用法示例。
在下文中一共展示了Clock.SetPosition方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
public override void Start()
{
// once play navigates away from home screen, don't play the intro when they return
Main.instance.playIntro = false;
Main.instance.crewSaved = 0;
FSprite background = new FSprite("mainGameViewport");
background.SetAnchor(0.0f, 0.0f);
AddChild(background);
_levelManager = new LevelManager();
AddChild(_levelManager);
this.shouldSortByZ = true;
meltdownBar = new FSprite("meltdown");
meltdownBar.SetPosition(Futile.screen.halfWidth, 672);
AddChild(meltdownBar);
_closeButton = new FButton("button");
_closeButton.AddLabel("Emulogic","Quit",Color.black);
_closeButton.label.scale = 0.25f;
_closeButton.sortZ = 1;
_closeButton.SignalRelease += HandleCloseButtonRelease;
_closeButton.x = Futile.screen.width - 125.0f;
_closeButton.y = Futile.screen.height -75.0f;
AddChild(_closeButton);
Clock clock = new Clock();
clock.SetPosition( 75.0f, Futile.screen.height - 75.0f);
AddChild(clock);
crewSavedLabel = new FLabel("Emulogic", "Crew Members Saved: 0");
crewSavedLabel.SetPosition( Futile.screen.halfWidth, Futile.screen.height - 45.0f);
crewSavedLabel.scale = 0.25f;
AddChild(crewSavedLabel);
selectedInventory = new FSprite("inventorySelected");
selectedInventory.isVisible = false;
AddChild(selectedInventory);
//spawnInventory();
spawnCrew(2);
_lastCycle = Main.GameTime;
}