Skip to content

Commit

Permalink
sequential fade ins of how to play text, don't use website button
Browse files Browse the repository at this point in the history
  • Loading branch information
tyson-kubota committed Jul 27, 2013
1 parent 53e1779 commit a887dfd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions fallingStartMenuUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ function Start () {
loadNewLevelButton.onTouchUpInside += LevelSelect;
loadNewLevelButton.hidden = true;

openSiteButton = UIButton.create("website.png","website.png", 40, 40);
openSiteButton.positionFromBottomRight(.05f, .05f);
openSiteButton.onTouchUpInside += OpenSite;
openSiteButton.hidden = true;
// openSiteButton = UIButton.create("website.png","website.png", 40, 40);
// openSiteButton.positionFromBottomRight(.05f, .05f);
// openSiteButton.onTouchUpInside += OpenSite;
// openSiteButton.hidden = true;

aboutButtonStart = UIButton.create("aboutWhite.png","aboutWhite.png", 40, 40);
aboutButtonStart.normalTouchOffsets = new UIEdgeOffsets( 30 );
Expand Down Expand Up @@ -304,7 +304,7 @@ function PauseGame() {
leftArrow.hidden = false;
loadNewLevelButton.hidden = false;
bgSprite.hidden = false;
openSiteButton.hidden = false;
//openSiteButton.hidden = false;

savedTimeScale = Time.timeScale;
// scriptName.GetComponent(FallingPlayer).FadeAudio (.09, FadeDir.Out);
Expand All @@ -325,7 +325,7 @@ function UnPauseGame(resume : boolean) {
rightArrow.hidden = true;
leftArrow.hidden = true;
loadNewLevelButton.hidden = true;
openSiteButton.hidden = true;
//openSiteButton.hidden = true;
FallingPlayer.isPausable = resume;
}

Expand All @@ -352,7 +352,7 @@ function LevelSelect() {
aboutButtonStart.hidden = true;
howToButton.hidden = true;

openSiteButton.hidden = false;
//openSiteButton.hidden = false;

loadLevelOne.hidden = false;
loadLevelTwo.hidden = false;
Expand All @@ -372,7 +372,7 @@ function BackToPauseMenu() {
howToButton.hidden = false;

// pauseButton.hidden = false;
openSiteButton.hidden = true;
//openSiteButton.hidden = true;

fadeInPauseMenu();

Expand Down Expand Up @@ -432,7 +432,7 @@ function FadeOutLevelButtons(timer : float) {
howToButton.alphaTo(timer, 0.0f, Easing.Sinusoidal.easeOut);
//rightArrow.hidden = true;
//leftArrow.hidden = true;
openSiteButton.hidden = true;
//openSiteButton.hidden = true;

yield WaitForSeconds(timer);

Expand Down Expand Up @@ -461,9 +461,9 @@ function OpenHowTo() {
helpIcon1.hidden = false;
helpIcon2.hidden = false;
helpIcon3.hidden = false;
helpIcon1.alphaFromTo(.25f, 0.0f, 0.8f, Easing.Sinusoidal.easeOut);
helpIcon2.alphaFromTo(.25f, 0.0f, 0.8f, Easing.Sinusoidal.easeOut);
helpIcon3.alphaFromTo(.25f, 0.0f, 0.8f, Easing.Sinusoidal.easeOut);
helpIcon1.alphaFromTo(.5f, 0.0f, 0.9f, Easing.Sinusoidal.easeOut);
helpIcon2.alphaFromTo(.75f, 0.0f, 0.9f, Easing.Sinusoidal.easeInOut);
helpIcon3.alphaFromTo(1.5f, 0.0f, 0.9f, Easing.Sinusoidal.easeInOut);
}

function OpenAbout() {
Expand Down
2 changes: 1 addition & 1 deletion slowlyRotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var dir:float = 1;
var shouldRotate : boolean = false;
private var myTransform : Transform = null;

function Start ()
function Start () {
myTransform = transform;
}

Expand Down

0 comments on commit a887dfd

Please sign in to comment.