Beispiel #1
0
        public void Initialize(IBoothRoot booth, ResetToken token)
        {
            if (booth == null)
            {
                throw new System.ArgumentNullException("booth");
            }

            this.booth = booth;
            if (token != null)
            {
                token.Reset += Token_Reset;
            }
            initialized = true;
        }
Beispiel #2
0
        public void Initialize(IBoothRoot booth, IBoundsSource boundsSource, ResetToken token)
        {
            if (booth == null)
            {
                throw new System.ArgumentNullException("booth");
            }
            if (boundsSource == null)
            {
                throw new System.ArgumentNullException("targetRenderer");
            }

            this.booth        = booth;
            this.boundsSource = boundsSource;
            if (token != null)
            {
                token.Reset += Token_Reset;
            }
            initialized = true;
        }
Beispiel #3
0
        public void Initialize(IBoothRoot booth, RectTransform targetRectTransform, ResetToken token)
        {
            if (booth == null)
            {
                throw new System.ArgumentNullException("booth");
            }
            if (targetRectTransform == null)
            {
                throw new System.ArgumentNullException("targetRenderer");
            }

            this.booth = booth;
            this.targetRectTransform = targetRectTransform;
            if (token != null)
            {
                token.Reset += Token_Reset;
            }
            initialized = true;
        }