Example #1
0
        public void StartNewFlight()
        {
            SpaceShip.Hp = 3;
            SpaceShip.SetVisible(true);

            Hud.Score = 0;
            Hud.SetVisible(true);
        }
Example #2
0
        private void OnHpChanged()
        {
            Hud.Hp = SpaceShip.Hp;
            if (SpaceShip.Hp <= 0)
            {
                SpaceShip.SetVisible(false);
                Hud.SetVisible(false);

                FxPlayer.PlayBigBlast(SpaceShip.Pos);
            }
        }