public void StartGame() { LoadGame(); canPlay = true; moveSpeed = startMoveSpeed; score = 0; scoreFloat = 0; roadSpawner.StartGame(); resultObject.SetActive(false); characterMovement.Respawn(); }
/// <summary> /// Метод реализует начало игры. Также вызывается при рестарте. /// </summary> public void StartGame() { ResultObj.SetActive(false); RS.StartGame(); CanPlay = true; PM.ac.SetTrigger("ReSpawn"); Points = 0; MoveSpeed = 7; PointsMultiplier = 1; PowerUpMultiplier = 1; }
public void StartGame() { PM.Respawn(); ResultObj.SetActive(false); RS.StartGame(); CanPlay = true; PM.SkinAnimator.SetTrigger("respawn"); CurrentMoveSpeed = BaseMoveSpeed; PointsMultiplier = 1; PowerUpMultiplier = 1; Points = 0; }
public void StartGame() { CanPlay = true; Points = CM.transform.position.x - RS.startPlayerPos.x; ResultObj.SetActive(false); CM.TurnOnRunAnimation(); RS.StartGame(); CM.LifesCount = 5; CM.CanPlay = true; }
public void StartGame() { PM.Respawn(); ResultObj.SetActive(false); RS.StartGame(); CanPlay = true; PM.SkinAnimator.SetTrigger("respawn"); StartCoroutine(FixTrigger()); Show(SpeedImage); Show(CoinImage); SpeedTxt.text = ((int)BaseMoveSpeed).ToString(); }
public void startGame() { Pm.Respawn(); MoveSpeed = StartMoveSpeed; PointsMultiplayer = StartPointsMultiplayer; ResultObj.SetActive(false); Rs.StartGame(); canPlay = true; Pm.ac.SetTrigger("respawn"); StartCoroutine(FixTrigger()); points = 0; PointTxt.text = ((int)points).ToString(); gems = 0; GemsTxt.text = ((int)gems).ToString(); }
public List <Skin> Skins; // Список скинов public void StartGame() { PM.Respawn(); ResultObj.SetActive(false); RS.StartGame(); CanPlay = true; PM.SkinAnimator.SetTrigger("respawn"); StartCoroutine(FixTrigger()); CurrentMoveSpeed = BaseMoveSpeed; // багфикс: очки не обнуляются и скорость не восстанавливается PointsMultiplier = 1; PowerUpMultiplier = 1; Points = 0; }