public override void InitData() { type = ShapeType.rect; halfWidth = ToolMethod.Config2Logic(halfWidthCon); halfHeight = ToolMethod.Config2Logic(halfHeightCon); }
public override void InitData() { type = ShapeType.arc; arcRadius = ToolMethod.Config2Logic(arcRadiusCon); arcCenter = ToolGameVector.ChangeGameVectorConToGameVector2(arcCenterCon) + basePosition; }
public void InitSelf(ObjectType _objType, int _objID) { isInDestory = false; objUid = new ObjectUid(_objType, _objID); basePosition = ToolGameVector.ChangeGameVectorConToGameVector2(baseCenter); baseRadius = ToolMethod.Config2Logic(baseRadiusCon); InitData(); }
public override void InitData() { type = ShapeType.polygon; colliRadius = ToolMethod.Config2Logic(colliRadiusCon); }
public static GameVector2 ChangeGameVectorConToGameVector2(GameVec2Con _vec2) { return(new GameVector2(ToolMethod.Config2Logic(_vec2.x), ToolMethod.Config2Logic(_vec2.y))); }