本文整理汇总了C#中Window.Initialize方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Initialize方法的具体用法?C# Window.Initialize怎么用?C# Window.Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Window
的用法示例。
在下文中一共展示了Window.Initialize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
void Start()
{
anim = GetComponent<Animator>();
Window newWindow = new Window();
newWindow.Initialize("animTest",5,5,150,200,AnimTest,Window.Align.TopLeft,"Animation Test");
GUIManager.windows.Add(newWindow);
}
示例2: Start
// Use this for initialization
void Start()
{
Application.targetFrameRate = -1;
// Assign Menus
Window newWindow = new Window();
newWindow.Initialize("main", 0, 0, 120, 150, MainMenu, Window.Align.Center, "Main Menu");
GUIManager.windows.Add(newWindow);
}
示例3: Start
void Start()
{
Window newWindow = new Window();
newWindow.Initialize("networkMenu", 0, 0, 120, 100, ShowMainMenu, Window.Align.Center, "Network Game");
GUIManager.windows.Add(newWindow);
newWindow = new Window();
newWindow.Initialize("hostMenu", 0, 0, 220, 150, ShowHostMenu, Window.Align.Center, "Host Game");
GUIManager.windows.Add(newWindow);
newWindow = new Window();
newWindow.Initialize("joinPublicMenu", 0, 0, 120, 150, ShowJoinPublic, Window.Align.Center, "Join Game");
GUIManager.windows.Add(newWindow);
newWindow = new Window();
newWindow.Initialize("joinDirectMenu", 0, 0, 220, 150, ShowJoinPrivate, Window.Align.Center, "Direct Connect");
GUIManager.windows.Add(newWindow);
}
示例4: Start
// Use this for initialization
void Start()
{
selectedColor = new Texture2D(32,32);
selectedColorStyle = new GUIStyle();
sheetData = new SpriteSheetData();
sheetData.Initialize();
SetPalettes();
canvas.material.mainTexture = sheetData.buffered;
//NewCanvas();
//GUI Elements
Console.Bind("spriteEdit", 0, 0, 250, 120);
Window newWindow = new Window();
newWindow.Initialize("spriteEdit", 0, 0, 120, 25, Toolbar, Window.Align.TopLeft);
GUIManager.windows.Add(newWindow);
newWindow = new Window();
newWindow.Initialize("spriteEdit", 0, 0, 290, 90, Palette, Window.Align.BottomLeft);
GUIManager.windows.Add(newWindow);
newWindow = new Window();
newWindow.Initialize("spriteEdit", 0, 0, 138, 74, Swatches, Window.Align.Bottom);
GUIManager.windows.Add(newWindow);
mainColor = new RGBColor();
mainColor.SetColor(0,0,0);
selectedColorStyle.normal.background = selectedColor;
}
示例5: Bind
public static void Bind(string state, float xoffset, float yoffset, float width, float height)
{
Window newWindow = new Window();
newWindow.Initialize(state, xoffset, yoffset, width, height, DevConsole, Window.Align.BottomRight);
GUIManager.windows.Add(newWindow);
}
示例6: Main
static void Main(string[] args)
{
Window window = new Window();
window.Initialize (new AdamoOpenGL.OpenGLDevice ());
window.Start(new Game1());
}