コード例 #1
0
        void Awake()
        {
            Instance = this;

            closeUIButton.onClick.RemoveAllListeners();
            closeUIButton.onClick.AddListener(Hide);
        }
コード例 #2
0
ファイル: DialogUI.cs プロジェクト: kip7evans/Pop_Dialogo
        void Awake( )
        {
            Instance = this;

            closeUIButtonImage = closeUIButton.GetComponent <Image> ( );
            closeUIButtonText  = closeUIButton.GetComponentInChildren <Text> ( );
            canvasGroup        = canvas.GetComponent <CanvasGroup> ( );

            //Add close event listener
            closeUIButton.onClick.RemoveAllListeners( );
            closeUIButton.onClick.AddListener(Hide);
        }