public void Initialize(Bounds bounds, ResetToken token)
 {
     this.bounds = bounds;
     if (token != null)
     {
         token.Reset += Token_Reset;
     }
     initialized = true;
 }
Пример #2
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;
        }
Пример #3
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;
        }
Пример #4
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;
        }