protected override void OnStart() { base.OnStart(); ItemScript_Plant plant = GetComponent <ItemScript_Plant>(); if (plant != null) { plant.plantUpdated = PlantUpdated; } }
// public IntVector3 mSafePos; public override void OnDragOut() { if (null != itemDragging) { PlantInfo addInfo = PlantInfo.GetPlantInfoByItemId(itemDragging.itemObj.protoId); ItemScript_Plant isp = gameObject.GetComponent <ItemScript_Plant>(); isp.ResetModel(3, addInfo); } base.OnDragOut(); }