Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("starting resume button");

        state = GameObject.Find("StateController").GetComponent<StateController>();

        button = transform.GetComponent<Button>();
        button.onClick.AddListener(() => { state.pause();});
    }