public virtual void setData(BaseObjectData d) { if (d != null) { _data = d; } else { LogUtil.Error(gameObject.name + ": setData with null"); } }
public override void setData(BaseObjectData data) { if (data is BaseItemData) { base.setData((BaseItemData)data); } else { //TODO } }
public override void setData(BaseObjectData data) { if (data is BaseActorData) { base.setData(data); } else { LogUtil.Error(gameObject.name + ": should set 'BaseActorData' rather than 'BaseObjectData'"); } }