refactoring
This commit is contained in:
@@ -20,6 +20,11 @@ public class SinkComponent : ComponentBase
|
||||
SetRotation();
|
||||
}
|
||||
|
||||
public override void SetEntity(string key, string name = "")
|
||||
{
|
||||
EntityManager.Instance.GetEntity(key, this, name);
|
||||
}
|
||||
|
||||
public override void GetModelData(DataObject modelData)
|
||||
{
|
||||
sinkModelData.component_id = modelData.GetString("component_id");
|
||||
@@ -34,6 +39,7 @@ public class SinkComponent : ComponentBase
|
||||
EntityManager.Instance.DestroyEnity(sinkentities);
|
||||
ProgressDatabase.Instance.CollectData(sinkData.name, (datas.GetString("total_sinked"), datas.GetString("normal_items")));
|
||||
}
|
||||
|
||||
public override void getpath()
|
||||
{
|
||||
onComponentClicked?.Invoke(componentType, sinkData);
|
||||
|
||||
Reference in New Issue
Block a user