Example #1
0
	void Awake ()
	{
		initialized = false;
		System.DateTime time = System.DateTime.Now;
		instance = this;

		server = ServerHandler.server;

		if (!StaticData.OnlineVistoria) {
			vistoriaDAO = ServerHandler.vistoriaDAO;
			servicoDAO = ServerHandler.servicoDAO;
			ambienteDAO = ServerHandler.ambienteDAO;
			indicadorDAO = ServerHandler.indicadorDAO;
			imagemIndicadorDAO = ServerHandler.imagemIndicadorDAO;
			LoadOfflineData ();
		} else {
			LoadOnlineData ();
		}
	
	}
Example #2
0
	void OnDestroy ()
	{
		instance = null;
	}