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