コード例 #1
0
        public bool PhotonCollidesWithShip(PlayerShip playerShip)
        {
            foreach (Photon photon in _photons)
            {
                if (photon.IsActive)
                {
                    if (playerShip.IsPointWithin(photon.Location))
                    {
                        return true;
                    }
                }
            }

            return false;
        }
コード例 #2
0
        public void Start(PlayerShip ship)
        {
            Lines = ship.Sprite.ToLineList();

            CreateDeltas();
        }
コード例 #3
0
        public void Start(PlayerShip ship)
        {
            Lines = ship.Sprite.ToLineList();

            CreateDeltas();
        }