public void Revive() { IsDead = false; LifeTimer.Start(); for (int i = 0; i < panelNature.Controls.Count; i++) { if (panelNature.Controls[i] is Leaf) { ((Leaf)panelNature.Controls[i]).Revive(); } } }
public new void Show() { if (Visible) { Reincarnation(); return; } //if (!Visible) // Reincarnation(); TipText.Text = _tip._Text; this.Height = TipText.Height + 100; //this.Width = TipText.Width + 20; this.Location = new Point(Cursor.Position.X, Cursor.Position.Y + 20); base.Show(); LifeTimer.Start(); }
public void LifeForm() { LifeTimer.Interval = 600; LifeTimer.Tick += new EventHandler((object sender, EventArgs e) => { InviseForm(); LifeTimer.Stop(); }); LifeTimer.Start(); }