public void DestroyGameEntity(GameEntity gent) { Element gentlement = elementsByGameObjectId[gent.GetId()]; if (gentlement != null) { try { gentlement.parentElement.removeChild(gentlement); elementsByGameObjectId.Remove(gent.GetId()); } catch (Exception ex) { Debug.log("Failed to destroy " + gent.GetId() + " ( " + gent.GetName() + " ) :"); Debug.log(ex.Message); } } }
public void FollowEntity(GameEntity gentToFollow) { Debug.log("Warning. Attempting to follow " + gentToFollow.GetName() + " but function not implemented."); }