Example #1
0
 public Item(ItemBody body, int index)
 {
     this.body  = body;
     body.index = index;
     iType      = body.type;
     _iLoc      = ILOC.VOID;
 }
Example #2
0
        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;
        }
Example #3
0
 public void SetLocation(ILOC location)
 {
     _iLoc = location;
 }