コード例 #1
0
        public static StrutBox Get(float Width, float Height, float Depth, float Shift, StrutPolicy Policy)
        {
            var box = Get();

            box.width  = Width;
            box.height = Height;
            box.depth  = Depth;
            box.shift  = Shift;
            box.policy = Policy;
            return(box);
        }
コード例 #2
0
ファイル: StrutBox.cs プロジェクト: Synedh/the_m_wand
        public static StrutBox Get(float Width, float Height, float Depth, float Shift, StrutPolicy Policy)
        {
            var box = ObjPool <StrutBox> .Get();

            box.Set(Width, Height, Depth, Shift);
            box.policy = Policy;
            return(box);
        }