public object Call(Interpreter interpreter, Token token, List <object> arguments)
            {
                if (!(arguments[0] is TransformWrapper))
                {
                    throw new ErrorHandler.RuntimeError(token, "First argument must be a unity transform");
                }

                TransformWrapper other = (TransformWrapper)arguments[0];

                return(self.self.IsChildOf(other.self));
            }
            public object Call(Interpreter interpreter, Token token, List <object> arguments)
            {
                if (arguments[0] == null)
                {
                    self.self.parent = null;
                    return(null);
                }

                if (!(arguments[0] is TransformWrapper))
                {
                    throw new ErrorHandler.RuntimeError(token, "First argument must be a unity transform");
                }

                TransformWrapper other = (TransformWrapper)arguments[0];

                self.self.SetParent(other.self, (bool)arguments[1]);
                self.parentWrapper = other;

                return(null);
            }
 public GetParent(TransformWrapper self)
 {
     this.self = self;
 }
 public GetChildCount(TransformWrapper self)
 {
     this.self = self;
 }
 public GetSiblingIndex(TransformWrapper self)
 {
     this.self = self;
 }
 public IsChildOf(TransformWrapper self)
 {
     this.self = self;
 }