public void BeginGame() { directions.SetActive(false); playPauseButton.gameObject.SetActive(true); scoreText.gameObject.SetActive(true); CommonObjects.GetThrust().EnableThrust(); }
void Update() { if (Input.GetKeyDown(KeyCode.Space) && Time.timeScale == 1) { if (CanDropAnotherPackage() && CommonObjects.GetThrust().IsGeneratingThrust()) { DropPackage(); } } }
public void EndGame() { CommonObjects.GetThrust().DisableThrust(); scoreText.gameObject.SetActive(false); playPauseButton.gameObject.SetActive(false); DetermineWinner(); if (!SucceededAtLevel()) { done.transform.Find("Continue").gameObject.GetComponent <Button>().interactable = false; } done.SetActive(true); }