Пример #1
0
    void Start()
    {
        button = GameObject.Find("ResetButton").GetComponent <Button>();


        button.onClick.AddListener(() =>
        {
            WindowYNManager.ShowMessage(() =>
            {
                player.GetComponent <Loader>().Reset();
            }, "Сбросить очки?");
        });
    }
Пример #2
0
 void Awake()
 {
     instance = this;
 }