C# Class PickUpDrop, InventorySystem

脚本功能:MVC模式 —— Control控制,背包内物品摆放 添加对象:Item 物品格子预设体 版权声明:Copyright (c) 2015 duzixi.com All Rights Reserved 创建日期:2015.05.18 duzixi.com 修改记录:2015.07.03 添加射线忽略 知识要点: 1. UGUI、MVC设计模式
Inheritance: MonoBehaviour, IDropHandler
Mostra file Open project: duzixi/InventorySystem Class Usage Examples

Public Properties

Property Type Description
gridID int
pickedItem ItemModel.Item,

Public Methods

Method Description
Drop ( ) : void
OnDrop ( PointerEventData eventData ) : void
SwapItem ( int gridID ) : void

Private Methods

Method Description
Start ( ) : void

Method Details

Drop() public method

public Drop ( ) : void
return void

OnDrop() public method

public OnDrop ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

SwapItem() public static method

public static SwapItem ( int gridID ) : void
gridID int
return void

Property Details

gridID public_oe property

public int gridID
return int

pickedItem public_oe static_oe property

public static ItemModel.Item, pickedItem
return ItemModel.Item,