Fixed #1615 Modify some codes of MoonWarriors for WebGL