Beispiel #1
0
    void Start()
    {
        Button TopR  = TopRight.GetComponent <Button>();
        Button DownR = DownRight.GetComponent <Button>();
        Button RESET = Reset.GetComponent <Button>();

        TopR.onClick.AddListener(NextUI);
        DownR.onClick.AddListener(PreviousUI);
        RESET.onClick.AddListener(RE);
    }
Beispiel #2
0
    void Start()
    {
        Button ReturnBtn = Return.GetComponent <Button>();

        ReturnBtn.onClick.AddListener(ReturnClick);
        Button HelpBtn = Help.GetComponent <Button>();

        HelpBtn.onClick.AddListener(HelpClick);
        Button QuitBtn = Quit.GetComponent <Button>();

        QuitBtn.onClick.AddListener(QuitClick);
        Button ResetBtn = Reset.GetComponent <Button>();

        ResetBtn.onClick.AddListener(ResetClick);
    }