// 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 slideTopBottom(float transTime, ref GUIArea exit, ref GUIArea enter) { exit.exitTop(transTime); enter.enterBottom(transTime); }
public static void slideUpOutIn(float transTime, ref GUIArea exit, ref GUIArea enter) { exit.exitTop(transTime); enter.enterTop(transTime); }