Update README-RU.md

This commit is contained in:
Mikhail 2024-05-14 06:24:23 +08:00 committed by GitHub
parent 5b11b42f71
commit 93eb23bd56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,7 +222,7 @@ class SomeComponentTemplate : IComponentTemplate
public Type Type { get { return typeof(SomeComponent); } } public Type Type { get { return typeof(SomeComponent); } }
public void Apply(int worldID, int entityID) 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 object GetRaw() { return component; }
public void SetRaw(object raw) { component = (SomeComponent)raw; } public void SetRaw(object raw) { component = (SomeComponent)raw; }