mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-04 22:10:34 +03:00
Character controller now responds to setting localPosition on the entity
This commit is contained in:
@@ -52,15 +52,14 @@ namespace Nuake.Net
|
||||
public virtual void OnFixedUpdate(float dt) { }
|
||||
public virtual void OnDestroy() { }
|
||||
|
||||
public virtual void OnCollision(int entity1, int entity2)
|
||||
public virtual void OnCollision(Entity entity1, Entity entity2)
|
||||
{
|
||||
Engine.Log("penis");
|
||||
}
|
||||
|
||||
// Physics
|
||||
public void OnCollisionInternal(int entity1, int entity2)
|
||||
{
|
||||
//OnCollision(new Entity { ECSHandle = entity1 }, new Entity { ECSHandle = entity2 });
|
||||
OnCollision(new Entity { ECSHandle = entity1 }, new Entity { ECSHandle = entity2 });
|
||||
}
|
||||
|
||||
protected static Dictionary<Type, ComponentTypes> MappingTypeEnum = new Dictionary<Type, ComponentTypes>()
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Nuake.Net
|
||||
{
|
||||
ECSHandle = handle
|
||||
};
|
||||
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user