added guards to the pause and resume methods in order to prevent unnecessary actions and state changes
added guards to the pause and resume methods in order to prevent unnecessary actions and state changes

ap4y/OrigamiEngine,daria-kopaliani/OrigamiEngine,liufeigit/OrigamiEngine,ardenfire/SonanEngine,Eveian/OrigamiEngine,alecgorge/OrigamiEngine