void Start() { restartButton.SetActive(false); LevelButton.SetActive(false); quitButton.SetActive(false); ResumeButton.SetActive(false); ControlsButton.SetActive(false); //Подключение анимации и физики rb2d = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); extraJumps = extraJumpsValue; health1.SetActive(true); health2.SetActive(true); health3.SetActive(true); emptyhealth1.SetActive(false); emptyhealth2.SetActive(false); emptyhealth3.SetActive(false); //Health playerLayer = this.gameObject.layer; enemyLayer = LayerMask.NameToLayer("Enemy"); Physics2D.IgnoreLayerCollision(playerLayer, enemyLayer, false); rend = GetComponent <Renderer>(); color = rend.material.color; //Attack attackTrigger.enabled = false; //Box picketFence.enabled = true; //KnifeButton KnifeActive.SetActive(true); KnifeActive1.SetActive(true); KnifeActive2.SetActive(true); NoKnifeActive.SetActive(false); NoKnifeActive1.SetActive(false); NoKnifeActive2.SetActive(false); }
void GameOver() { PauseButton = MaiinPauseButton.GetComponent <Button>(); MaiinPauseButton.GetComponent <Button>().interactable = false; PopUpMenu.GetComponent <Animator>().SetBool("pop", true); Time.timeScale = 0; ResumeButton.SetActive(false); ExitControl = true; }
private void ResumeButton_Click(object sender, EventArgs e) { ResumeButton.Hide(); PauseButton.Show(); ProcessThread.Resume(); WorkingTime.Enabled = true; }
private void PauseButton_Click(object sender, EventArgs e) { PauseButton.Hide(); ResumeButton.Show(); WorkingTime.Enabled = false; ProcessThread.Suspend(); }
public void ButtonNoActive() { quitButton.SetActive(false); LevelButton.SetActive(false); restartButton.SetActive(false); ResumeButton.SetActive(false); ControlsButton.SetActive(false); PauseActive = false; }
public void ButtonActive() { quitButton.SetActive(true); LevelButton.SetActive(true); restartButton.SetActive(true); ResumeButton.SetActive(true); ControlsButton.SetActive(true); PauseActive = true; CharController.playerSpeed = 0; }
public void Pause(Button b) { // iTween.MoveTo(PopUpMenu, iTween.Hash("y", 1.5f, "time", 1.5f, "easetype", iTween.EaseType.easeOutElastic)); ExitControl = true; ResumeButton.SetActive(true); b.interactable = false; PauseButton = b; PopUpMenu.GetComponent <Animator>().SetBool("pop", true); Time.timeScale = 0; }
/* Load settings*/ private void Form1_Load(object sender, EventArgs e) { PauseButton.Hide(); ResumeButton.Hide(); StopButton.Enabled = false; FolderDialog.SelectedPath = Properties.Settings.Default.Path; PathTextBox.Text = Properties.Settings.Default.Path; FindTextBox.Text = Properties.Settings.Default.TextFind; InFileCheckBox.Checked = Properties.Settings.Default.InFile; TemplateNameTextBox.Text = Properties.Settings.Default.TemplateName; Author.Text = "Автор " + Properties.Settings.Default.Author; }
void DeadIsTrue() { restartButton.SetActive(true); gameObject.SetActive(true); quitButton.SetActive(true); LevelButton.SetActive(true); ResumeButton.SetActive(true); ControlsButton.SetActive(true); health1.SetActive(false); health2.SetActive(false); health3.SetActive(false); emptyhealth1.SetActive(true); emptyhealth2.SetActive(true); emptyhealth3.SetActive(true); }
public StatusForm(string header, string summary, bool isPlaying) { InitializeComponent(); this.Text = header; SummaryLabel.Text = summary; if (isPlaying == true) { ResumeButton.Hide(); } else { RefreshButton.Hide(); } }
private void StopButton_Click(object sender, EventArgs e) { unilock(); PauseButton.Hide(); ResumeButton.Hide(); StartButton.Show(); StopButton.Enabled = false; WorkingTime.Enabled = false; if (sender != null) { if (ProcessThread.ThreadState == ThreadState.Suspended) { ProcessThread.Resume(); } ProcessThread.Abort(); } }