private FlashCachedWWW(string url, int version, uint crc) { _state = FlashCachedWwwState.Init; _url = url; _crc = crc; _storageName = GetStorageNameFor(GetFileNameWithExtensionFrom(url), version); }
private bool AdvanceTo(FlashCachedWwwState c) { _state = c; return true; }
private bool AdvanceIf(bool condition) { if(condition) _state += 1; return true; }
private bool AdvanceOrBranch(bool condition, FlashCachedWwwState branch) { if (condition) _state = branch; return true; }
private bool Advance() { _state += 1; return true; }