示例#1
0
 public void Init(ColliderPrefab prefab, LVector2 pos, LFloat y, LFloat deg)
 {
     this.Prefab = prefab;
     _bound      = prefab.GetBounds();
     Transform2D = new CTransform2D(pos, y, deg);
     unchecked {
         Id = autoIncId++;
     }
 }
 public void Init(ColliderPrefab prefab, CTransform2D trans)
 {
     this.Prefab = prefab;
     _bound      = prefab.GetBounds();
     Transform2D = trans;
     _prePos     = Transform2D.pos;
     _preDeg     = Transform2D.deg;
     unchecked {
         Id = autoIncId++;
     }
 }
示例#3
0
 public void Init(ColliderPrefab prefab, CTransform2D trans)
 {
     this.Prefab = prefab;
     _bound      = prefab.GetBounds();
     MaxSideSize = LMath.Max(_bound.halfSize.x, _bound.halfSize.y);
     Transform2D = trans;
     _prePos     = Transform2D.pos;
     _preDeg     = Transform2D.deg;
     unchecked {
         Id = autoIncId++;
     }
 }