public Item(ItemBody body, int index) { this.body = body; body.index = index; iType = body.type; _iLoc = ILOC.VOID; }
public Item(ItemPreset itemPreset, int index, bool startVisible, Vector3 position) { ItemBody b = Instantiate(itemPreset.bodyPrefab, position, Quaternion.Euler(itemPreset.baseRotation)).GetComponent <ItemBody>(); body = b; body.index = index; body.SetVisible(startVisible); iType = itemPreset.type; _iLoc = ILOC.VOID; }
public void SetLocation(ILOC location) { _iLoc = location; }