public void UpdateState(INodeStateHolder holder) { this.position = holder.transform.localPosition; this.scale = holder.transform.localScale; }
/// <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); }