コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        IntroCanvas.SetActive(true);
        var btn = GameObject.Find("OkButton");

        btn.GetComponent <Button>().onClick.AddListener(() =>
        {
            IntroCanvas.SetActive(false);
            // Start game here
            messages.BeginQuestions();
            //StartPaperFall();
        });

        messages.LooseEvent += StartPaperFall;
        messages.LooseEvent += SwitchMusic;
    }