Answer the question
In order to leave comments, you need to log in
Units of measurement in Nginx config?
What is the difference between the entry in the Nginx config: client_header_buffer_size 2k;
and this one: client_header_buffer_size 2K;
?
Or this: client_header_buffer_size 2m;
from this: client_header_buffer_size 2M;
?
Where, in general, can you find what prefixes are used in Nginx? There is an article , but it is not entirely clear there.
Answer the question
In order to leave comments, you need to log in
GavriKos конечно все в комментариях порешал))
но оставлю для людей ленящихся читать.
переменные
people_all
people_in_golden_int
надо на старте игры инициализировать. в данном случае из PlayerPrefs подгрузить значения.))
а иначе так и будет там по умолчанию значение, заданное в скрипте/редакторе
Для тех,кому окажется это полезным, вот так примерно выглядит скрипт загрузки префсов,который мы помещаем на отдельный игровой объект, активный с самого начала.
public class Loading : MonoBehaviour {
public GameObject people;
public GameObject people_in_golden;
public GameObject gold;
// Use this for initialization
void Start () {
gold.GetComponent<Text>().text = PlayerPrefs.GetFloat("Gold").ToString();
people_in_golden.GetComponent<Text>().text = PlayerPrefs.GetInt("people_in_golden_int1").ToString();
people.GetComponent<Text>().text = PlayerPrefs.GetInt("People_how_many1").ToString();
}
There is no difference. Whatever is more convenient for you, then use it.
In the documentation and in the working codes, I saw only with a small letter. And I recommend that you use only small letters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question