示例#1
0
 void topHatFunction()
 {
     GUILayout.BeginVertical("box");
     if (GUILayout.Button("exit right"))
     {
         hat.enterLeft(transitionSpeed);
         topHat.exitRight(transitionSpeed);
     }
     GUILayout.FlexibleSpace();
     transitionMenu();
     GUILayout.FlexibleSpace();
     GUILayout.Label("Right Bar");
     GUILayout.EndVertical();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     hat       = new GUIArea(hatFunction, new Vector2(0.25f, 1f), "left");
     topHat    = new GUIArea(topHatFunction, new Vector2(0.25f, 1f), "right");
     batman    = new GUIArea(batmanFunction, 0.25f);
     bottomBar = new GUIArea(bottomFunction, new Vector2(0.5f, 0.25f), "bottom");
     topBar    = new GUIArea(topFunction, new Vector2(0.5f, 0.25f), "top");
     altTop    = new GUIArea(altTopFunction, new Vector2(0.5f, 0.25f), "top");
     hat.enterLeft(0.25f);
     topHat.exitRight(0.25f);
     batman.enterSpinScale(1f);
     topBar.enterTop(0.25f);
     altTop.exitTop(0.25f);
 }
 public static void slideRightLeft(float transTime, ref GUIArea exit, ref GUIArea enter)
 {
     exit.exitRight(transTime);
     enter.enterLeft(transTime);
 }
 public static void slideLeftOutIn(float transTime, ref GUIArea exit, ref GUIArea enter)
 {
     exit.exitLeft(transTime);
     enter.enterLeft(transTime);
 }