Ejemplo n.º 1
0
        private void CheckLife()
        {
            if (UIGame.TryUpdateLife())
            {
                m_movement.RendererBehaviour.SpriteRenderer.enabled = true;

                m_isBlinking = false;
            }
            else
            {
                GameManager.OnGameOver();
            }
        }
Ejemplo n.º 2
0
        public override void DoImpact()
        {
            UIGame.UpdateScore((int)m_size);

            switch (m_size)
            {
            case AsteroidSize.Large:
                GameManager.CheckAsteroids(this, AsteroidSize.Medium);
                break;

            case AsteroidSize.Medium:
                GameManager.CheckAsteroids(this, AsteroidSize.Small);
                break;

            default:
                GameManager.CheckAsteroids(this, AsteroidSize.Null);
                break;
            }
        }
        public InputTouchController()
        {
            UIGame.ShowTouchControls();

            m_cooldownTime = Time.time;
        }
Ejemplo n.º 4
0
        public static void OnGameOver()
        {
            Instance.CancelInvoke();

            UIGame.ShowGameOver();
        }