ResetState() public method

public ResetState ( ) : void
return void
    public void UpdateDate()
    {
        CreaturePackAsset packAsset = (CreaturePackAsset)target;

        {
            TextAsset bytesAsset = (TextAsset)creaturePackBytes.objectReferenceValue;
            if (bytesAsset)
            {
                if (bytesAsset.bytes.Length > 0)
                {
                    packAsset.ResetState();
                    packAsset.creaturePackBytes = bytesAsset;
                }
            }
        }

        {
            TextAsset jsonAsset = (TextAsset)creatureMetaJSON.objectReferenceValue;
            if (jsonAsset)
            {
                if (jsonAsset.bytes.Length > 0)
                {
                    packAsset.creatureMetaJSON = jsonAsset;
                    packAsset.LoadMetaData();
                }
            }
        }
    }
Beispiel #2
0
    public void UpdateDate()
    {
        CreaturePackAsset packAsset  = (CreaturePackAsset)target;
        TextAsset         bytesAsset = (TextAsset)creaturePackBytes.objectReferenceValue;

        if (bytesAsset)
        {
            if (bytesAsset.bytes.Length > 0)
            {
                packAsset.ResetState();
                packAsset.creaturePackBytes = bytesAsset;
            }
        }
    }