public void SaveSetting() { //Debug.Log(PlayerTextCount.text); sharedobj.setPlayersCount(int.Parse(PlayerTextCount.text)); sharedobj.setIsFirstRound(true); //sharedobj.setIsGameStarted(true); sharedobj.setTimerForEveryone(TimerTextCount.text); sharedobj.setCountNum(int.Parse(NumTextCount.text)); sharedobj.setCurentNumber(1); sharedobj.setPlayersTurn(0); //نوبت نفر اول int[] Empty_Score = new int[6]; Empty_Score[0] = 0; Empty_Score[1] = 0; Empty_Score[2] = 0; Empty_Score[3] = 0; Empty_Score[4] = 0; Empty_Score[5] = 0; sharedobj.setPlayersScoreList(Empty_Score); //PlayerPrefs.SetInt("IsGameStarted1",0); Debug.Log(sharedobj.getIsGameStarted()); set(); }