Exemple #1
0
        public void StartGame(rqgames.Game.Game game)
        {
            CurrentScore = new PlayerScore();
            CurrentScore.CurrentLife = _config.LifeCount;
            CurrentScore.CurrentWave = 1;

            Invulnerable = false;

            _game = game;
            gameObject.SetActive(true);
            transform.position = new Vector3(0, -_game.TopY + 4, 0);
        }
Exemple #2
0
        public void Reset(rqgames.Game.Game game, Game.Game.Wave row, int startY)
        {
            _internalTimer = 0;
            _game          = game;
            _startY        = startY;
            _gameContainer = row;
            _timerAttack   = 0;

            if (_fsm != null)
            {
                _fsm.IssueCommand(Playable.FSMCommon.IDLE_COMMAND);
            }
        }