private void Init() {
		m_leftLimit = LevelController.instance.leftLimit;
		m_rightLimit = LevelController.instance.rightLimit;
		allowMoveForward = false;
		allowMoveSideStep = false;
		allowFire = false;	
		isGameOver = false;
		playerVO.currentHp = playerVO.maxHp;
		m_animatorController.SetBool("Death", false);
		this.transform.position = LevelController.instance.PlayerStartPosition;
		m_xPositions = LevelController.instance.GetWallPositionsX();
		m_currentPosColumn = Mathf.CeilToInt(m_xPositions.Length / 2);
		m_previousPosColumn = m_currentPosColumn;
		m_mouseTouchControls = this.GetComponent<MouseTouchControls>();
	}
Exemplo n.º 2
0
 private void Init()
 {
     m_leftLimit        = LevelController.instance.leftLimit;
     m_rightLimit       = LevelController.instance.rightLimit;
     allowMoveForward   = false;
     allowMoveSideStep  = false;
     allowFire          = false;
     isGameOver         = false;
     playerVO.currentHp = playerVO.maxHp;
     m_animatorController.SetBool("Death", false);
     this.transform.position = LevelController.instance.PlayerStartPosition;
     m_xPositions            = LevelController.instance.GetWallPositionsX();
     m_currentPosColumn      = Mathf.CeilToInt(m_xPositions.Length / 2);
     m_previousPosColumn     = m_currentPosColumn;
     m_mouseTouchControls    = this.GetComponent <MouseTouchControls>();
 }