Exemplo n.º 1
0
    //wrapper for saving to file
    public void saveToFile(string filename)
    {
        if (!precacheGameobjects)
        {
            StartCoroutine(startShowPrecachingMandatoryMessage(8.5f));
            return;
        }

        stop();

        Object2PropertiesMappingListWrapper o2pMappingListW = new Object2PropertiesMappingListWrapper();

        foreach (var entry in gOs2propMappings)
        {
            o2pMappingListW.addMapping(entry.Value);
        }
        o2pMappingListW.recordingInterval = recordingInterval;
        SerializeObject(filename, o2pMappingListW);
    }
Exemplo n.º 2
0
    public byte[] saveToStream()
    {
        if (!precacheGameobjects)
        {
            StartCoroutine(startShowPrecachingMandatoryMessage(8.5f));
            return(null);
        }

        stop();

        Object2PropertiesMappingListWrapper o2pMappingListW = new Object2PropertiesMappingListWrapper();

        foreach (var entry in gOs2propMappings)
        {
            o2pMappingListW.addMapping(entry.Value);
        }
        o2pMappingListW.recordingInterval = recordingInterval;
        return(SerializeObject(o2pMappingListW));
    }
Exemplo n.º 3
0
    public byte[] saveToStream()
    {
        if (!precacheGameobjects)
        {
            StartCoroutine(startShowPrecachingMandatoryMessage(8.5f));
            return null;
        }

        stop();

        Object2PropertiesMappingListWrapper o2pMappingListW = new Object2PropertiesMappingListWrapper();
        foreach (var entry in gOs2propMappings)
        {
            o2pMappingListW.addMapping(entry.Value);
        }
        o2pMappingListW.recordingInterval = recordingInterval;
        return SerializeObject(o2pMappingListW);
    }
Exemplo n.º 4
0
	//wrapper for saving to file
	public void saveToFile(string filename) {
		
		if (!precacheGameobjects) {
			StartCoroutine(startShowPrecachingMandatoryMessage(8.5f));
			return;	
		}
			
		stop ();
			
		Object2PropertiesMappingListWrapper o2pMappingListW = new Object2PropertiesMappingListWrapper();
		
		
		foreach (var entry in gOs2propMappings) {
			
			//Debug.Log (entry.Key.name);
			/*foreach (var yang in entry.Value.savedStates)
			{
				//Debug.Log (yang.Key);

				if (entry.Key.name == "Main Camera")
				{
					//Debug.Log (yang.Value.localPosition.getVector3());
					//Debug.Log (yang.Value.localRotation.getQuaternion());
					Debug.Log (yang.Value.dialogueNum);
					Debug.Log (yang.Value.dialogueType);
					Debug.Log (yang.Value.convoTitle);

				}
			}*/
			

			o2pMappingListW.addMapping(entry.Value);		
		}

		o2pMappingListW.recordingInterval = recordingInterval;
		SerializeObject(filename,o2pMappingListW);							
		
	}