Пример #1
0
 public void UpdateState(INodeStateHolder holder)
 {
     this.position = holder.transform.localPosition;
     this.scale    = holder.transform.localScale;
 }
Пример #2
0
        /// <summary>
        /// Checks the current position and scale agaist the state
        /// </summary>
        /// <returns></returns>
        public bool StateChanged(INodeStateHolder holder)
        {
            var current = new NodeState(holder.transform);

            return(current != this);
        }