// Update is called once per frame void Update() { for (int i = 0; i < clubSprites.Length; i++) { clubSprites[i].SetActive(ValidIndex == i); } if (acceptingInput) { if (Input.GetAxis(InputAxes.HORIZONTAL) < 0f) { Left(); acceptingInput = false; UkenTimer.SetTimeout(clubSelectTimeout, () => { acceptingInput = true; }); } else if (Input.GetAxis(InputAxes.HORIZONTAL) > 0f) { Right(); acceptingInput = false; UkenTimer.SetTimeout(clubSelectTimeout, () => { acceptingInput = true; }); } else if (Input.anyKeyDown) { SelectClub(); acceptingInput = false; } } }
public void SelectNo() { waitingOnInput = false; AudioManager.Instance.PlaySound("EpisodeVox/YouHaveSelectedNo"); UkenTimer.SetTimeout(4f, () => { Game.LoadScene(Game.Scenes.Startup); }); }
public void HaltThenGotoWaypoint() { Go.killAllTweensWithTarget(this.transform); UkenTimer.SetTimeout(0f, () => { curWaypointIndex -= 1; NextWaypoint(); }); }
private void LoadGame() { AudioManager.Instance.PlaySound("Title/ThrillhouseSHORT2"); splashUi.SetActive(true); UkenTimer.SetTimeout(4f, () => { Game.LoadScene(Game.Scenes.Welcome); }); }
private void SelectClub() { AudioManager.Instance.PlayClip(GameConfig.Instance.clubSelectSounds[ValidIndex]); Game.ClubPrefab = GameConfig.Instance.clubPrefabs[ValidIndex]; UkenTimer.SetTimeout(4f, () => { Game.LoadScene(Game.Scenes.Game); }); }
// Use this for initialization void Start() { Game.Initialize(); acceptingInput = false; clubSelectUi.SetActive(false); dialogue.SetActive(true); UkenTimer.SetTimeout(3f, () => { AudioManager.Instance.PlaySound("EpisodeVox/IAmCarvallo"); UkenTimer.SetTimeout(2f, () => { AudioManager.Instance.PlaySound("EpisodeVox/ChooseAClub"); UkenTimer.SetTimeout(2f, () => { acceptingInput = true; clubSelectUi.SetActive(true); }); }); }); }