Beispiel #1
0
        public void TestIfShot(Photon photon)
        {
            if (IsActive && photon.IsActive && _meteorSprite.IsPointWithin(photon.Location))
            {
                IsActive = false;
                photon.SetInactive();

                if (!(_meteorType is NullMeteorType))
                {
                    GameManager.RaiseMeteorHit(this);
                }
            }
        }
Beispiel #2
0
        public void TestIfShot(Photon photon)
        {
            if (IsActive && photon.IsActive && _meteorSprite.IsPointWithin(photon.Location))
            {
                IsActive = false;
                photon.SetInactive();

                if(!(_meteorType is NullMeteorType))
                {
                    GameManager.RaiseMeteorHit(this);
                }
            }
        }