Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 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);
 }