Exemple #1
0
 protected void OnShowBang(ShowBangEventArgs args)
 {
     if (ShowBang != null)
     {
         ShowBang(this, args);
     }
 }
Exemple #2
0
        void Util_ShowBang(object sender, ShowBangEventArgs e)
        {
            BangButton found = ButtonList.Find(but => but.Id == (int)e.Bang.mCenterID);

            if (e.Util.IsHit(found.EngineId, e.Bang.mCenterID))
            {
                return;
            }

            // big breath then CrashPlayer.Play()
            //////Thread.SpinWait(20);
            //////CrashPlayer.Stop();
            //////Thread.SpinWait(20);
            //////CrashPlayer.Play(); // hog
            //////Thread.SpinWait(20);

            e.Util.SetHit(found.EngineId, e.Bang.mCenterID, true);
            e.Util.SetHit(found.EngineId, e.Bang.mDistanceUnit1.id, true);
        }