Пример #1
0
        public virtual void AddChild(CCNode child, int z, CCPoint ratio, CCPoint offset)
        {
            Debug.Assert(child != null, "Argument must be non-nil");
            CCPointObject obj = new CCPointObject(ratio, offset);
            obj.Child = child;

            ParallaxArray.Add(obj);

            CCPoint pos = Position;
            pos *= (ratio + offset); 
            child.Position = pos;

            base.AddChild(child, z, child.Tag);
        }
Пример #2
0
        public virtual void AddChild(CCNode child, int z, CCPoint ratio, CCPoint offset)
        {
            Debug.Assert(child != null, "Argument must be non-nil");
            CCPointObject obj = new CCPointObject(ratio, offset);

            obj.Child = child;

            ParallaxArray.Add(obj);

            CCPoint pos = Position;

            pos           *= (ratio + offset);
            child.Position = pos;

            base.AddChild(child, z, child.Tag);
        }