World.set_position C# (CSharp) Method

set_position() public method

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

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