// Initialise saveLayer (etc) to false for all new Components.
saveLayer=false;
saveTag=false;
saveName=false;
saveHideFlags=false;
saveActive=false;
saveChildren=false;
saveDestroyed=false;
}
publicvoidAwake()
{
if(ES3AutoSaveMgr.Current==null)
ES3Internal.ES3Debug.LogWarning("<b>No GameObjects in this scene will be autosaved</b> because there is no Easy Save 3 Manager. To add a manager to this scene, exit playmode and go to Assets > Easy Save 3 > Add Manager to Scene.",this);
else
ES3AutoSaveMgr.AddAutoSave(this);
}
publicvoidOnApplicationQuit()
{
isQuitting=true;
}
publicvoidOnDestroy()
{
// If this is being destroyed, but not because the application is quitting,