public Vector3 GetPosition(slotPosE slotpos) { var rv = GetPosition(); calcVeks(); switch (slotpos) { default: case slotPosE.center: break; case slotPosE.front: rv += frontvek; break; case slotPosE.back: rv -= frontvek; break; case slotPosE.left: rv -= rsidevek; break; case slotPosE.right: rv += rsidevek; break; } return(rv); }
public Vector3 GetSlotPosition(int i, slotPosE slotPos) { if (i < 0 || slots.Count <= i) { return(Vector3.zero); } return(slots[slotnames[i]].GetPosition(slotPos)); }