public void SetStartButton(SpriteFont font, Texture2D[] ButtonBackgrounds, WaveMgr waveManager) { this.startbtnfont = font; this.waveManager = waveManager; this.StartButton = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero); this.StartButton.OnMouseClick += new EventHandler(StartButton_OnMouseClick); }
public EndInterface(Interface iface, Controller player, WaveMgr waveManager, SpriteFont[] fonts, Texture2D[] RetryButtonTextures) { this.iface = iface; this.player = player; this.waveManager = waveManager; this.fonts = fonts; this.RetryButton = new Button(RetryButtonTextures[0], RetryButtonTextures[1], RetryButtonTextures[2], Vector2.Zero); this.RetryButton.OnMouseClick += new EventHandler(RetryButton_OnMouseClick); this.RetryButton.Enabled = false; }
public EndInterface(Interface iface, Controller player, WaveMgr waveManager, SpriteFont[] fonts, Texture2D[] RetryButtonTextures) { this.iface = iface; this.player = player; this.waveManager = waveManager; this.fonts = fonts; this.RetryButton = new Button(RetryButtonTextures[0], RetryButtonTextures[1], RetryButtonTextures[2], Vector2.Zero); this.RetryButton.OnMouseClick += new EventHandler(RetryButton_OnMouseClick); this.RetryButton.Enabled = false; }
public override void Init(FightWeaponMgr mgr) { m_RadiusSqr = AtkRange * AtkRange; m_WaveMgr = m_RoateNode.parent.GetComponentInChildren <Player>().GetWaveMgr(); FirePoint = transform.Find("paota/FirePoint"); m_Player = GetComponentInParent <Player>(); if (FirePoint != null && m_FireEffect != null) { m_FireEffect.transform.SetParent(FirePoint, false); m_FireEffect.SetActive(true); } InitDamage(); m_CurTime = GetDtTime() * 0.8f; }
public void SetStartButton(SpriteFont font, Texture2D[] ButtonBackgrounds, WaveMgr waveManager) { this.startbtnfont = font; this.waveManager = waveManager; this.StartButton = new Button(ButtonBackgrounds[0], ButtonBackgrounds[1], ButtonBackgrounds[2], Vector2.Zero); this.StartButton.OnMouseClick += new EventHandler(StartButton_OnMouseClick); }