mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
Update README-RU.md
This commit is contained in:
parent
5b11b42f71
commit
93eb23bd56
@ -222,7 +222,7 @@ class SomeComponentTemplate : IComponentTemplate
|
||||
public Type Type { get { return typeof(SomeComponent); } }
|
||||
public void Apply(int worldID, int entityID)
|
||||
{
|
||||
EcsWorld.GetPoolInstance<EcsPool<SomeComponent>>(worldID).TryAddOrGet(entityID);
|
||||
EcsWorld.GetPoolInstance<EcsPool<SomeComponent>>(worldID).TryAddOrGet(entityID) = component;
|
||||
}
|
||||
public object GetRaw() { return component; }
|
||||
public void SetRaw(object raw) { component = (SomeComponent)raw; }
|
||||
|
Loading…
Reference in New Issue
Block a user