public void Start() { StateControllerInit(false); if (PD.p1Char == PersistData.C.FuckingBalloon) { if (PD.gameType == PersistData.GT.Arcade) { PD.SetAchievement("BALLOONMAN"); } PD.MoveFromWinScreen(); return; } if (PD.gameType == PersistData.GT.Challenge) { SetUpUnlock(true); return; } Sprite winText = Resources.LoadAll <Sprite>(SpritePaths.WinnerTexts)[PD.winType - 1]; if (PD.winType == 2) { PD.sounds.SetVoiceAndPlay(SoundPaths.NarratorPath + "042", 0); } else { PD.sounds.SetVoiceAndPlay(SoundPaths.NarratorPath + "043", 0); } Sprite[] sheet = Resources.LoadAll <Sprite>(SpritePaths.CharFullShots); Sprite charSpr; if (PD.p1Char == PersistData.C.FuckingBalloon) { charSpr = sheet[32]; } else if (PD.p1Char == PersistData.C.September) { charSpr = sheet[31]; } else if (PD.p1Char == PersistData.C.White) { charSpr = sheet[30]; } else { charSpr = sheet[(int)PD.p1Char * 3 + PD.winType]; } pose = GetGameObject(new Vector3(0.0f, -0.2f), "win", charSpr, false, "HUDText"); winTextGO = GetGameObject(new Vector3(0.0f, 1.0f), "win2", winText, false, "HUDText"); }
public void Update() { if (PD.p1Char == PersistData.C.FuckingBalloon) { return; } UpdateMouseInput(); if (isUnlock) { if (unlockTimer-- > 0) { return; } if (clicker.isDown() || PD.controller.Pause() || PD.controller.G_Launch() || PD.controller.M_Confirm()) { if (PD.gameType == PersistData.GT.Challenge) { PD.ChangeScreen(PersistData.GS.PuzSel); } else { PD.MoveFromWinScreen(); } } } else { if (clicker.isDown() || PD.controller.Pause() || PD.controller.G_Launch() || PD.controller.M_Confirm()) { if (PD.unlockNew > 0) { SetUpUnlock(false); } else { PD.MoveFromWinScreen(); } } } }