World.updatePosition C# (CSharp) Method

updatePosition() public method

public updatePosition ( KBEngine entity ) : void
entity KBEngine
return void
    public void updatePosition(KBEngine.Entity entity)
    {
        if(entity.renderObj == null)
            return;

        GameEntity gameEntity = ((UnityEngine.GameObject)entity.renderObj).GetComponent<GameEntity>();
        gameEntity.destPosition = entity.position;
        gameEntity.isOnGround = entity.isOnGround;
    }