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

                m_isBlinking = false;
            }
            else
            {
                GameManager.OnGameOver();
            }
        }
Esempio 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;
        }
Esempio n. 4
0
        public static void OnGameOver()
        {
            Instance.CancelInvoke();

            UIGame.ShowGameOver();
        }