// Use this for initialization void Start() { rand = Random.Range(1, 10); speed = rand * 0.005f; anim = GetComponent <Animation>(); if (rand < 5) { anim.Play("walk"); //soundOutbreak.PlayOneShot( soundOutbreak.clip ); //出てきた瞬間にも声出す } else { anim.Play("run"); //soundOutbreak1.PlayOneShot( soundOutbreak1.clip ); //出てきた瞬間にも声出す } stopFlag = false; deathFlag = false; deathTime = 0; for (int i = 0; i < shoutMax; i++) { soundFlag[i] = true; } deleteCount = GameObject.Find("DeleteCount").GetComponent <DeleteCount>(); }
protected override void AfterInit() { AverageTimer.Reset(); CreateCount.Reset(); ReadCount.Reset(); DeleteCount.Reset(); UpdateCount.Reset(); IncomePerSec.Reset(); AllProcessPerSec.Reset(); AsyncProcessPerSec.Reset(); SyncProcessPerSec.Reset(); CustomOperationCount.Reset(); }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (DeleteCount != null ? DeleteCount.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ReadListItems != null ? ReadListItems.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SharepointServerResourceId.GetHashCode(); hashCode = (hashCode * 397) ^ (SharepointList != null ? SharepointList.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FilterCriteria != null ? FilterCriteria.GetHashCode() : 0); hashCode = (hashCode * 397) ^ RequireAllCriteriaToMatch.GetHashCode(); return(hashCode); } }
public override bool Equals(object obj) { if ((obj is null && this != null) || !(obj is SemanticTokensEdit other)) { return(false); } var equal = Start.Equals(other.Start); equal &= DeleteCount.Equals(other.DeleteCount); equal &= (Data is null && other.Data is null) || Enumerable.SequenceEqual(Data, other.Data); return(equal); }
public bool IsInteresting(EntitiesConfiguration configuration = null) { if (configuration == null) { return(true); } if (!configuration.Enabled) { return(false); } if (!configuration.IgnoreNulls) { return(true); } var monitoredStatistics = configuration.MonitoredStatistics; var filterStats = (monitoredStatistics?.Count).GetValueOrDefault(0) > 0; if ((filterStats && !monitoredStatistics.Contains("LoadCount")) || (configuration.IgnoreNulls && LoadCount.GetValueOrDefault(0) == 0)) { LoadCount = null; } if ((filterStats && !monitoredStatistics.Contains("UpdateCount")) || (configuration.IgnoreNulls && UpdateCount.GetValueOrDefault(0) == 0)) { UpdateCount = null; } if ((filterStats && !monitoredStatistics.Contains("DeleteCount")) || (configuration.IgnoreNulls && DeleteCount.GetValueOrDefault(0) == 0)) { DeleteCount = null; } if ((filterStats && !monitoredStatistics.Contains("FetchCount")) || (configuration.IgnoreNulls && FetchCount.GetValueOrDefault(0) == 0)) { FetchCount = null; } if ((EntityType != "Entity") || (filterStats && !monitoredStatistics.Contains("InsertCount")) || (configuration.IgnoreNulls && InsertCount.GetValueOrDefault(0) == 0)) { InsertCount = null; } if ((EntityType != "Entity") || (filterStats && !monitoredStatistics.Contains("OptimisticFailureCount")) || (configuration.IgnoreNulls && OptimisticFailureCount.GetValueOrDefault(0) == 0)) { OptimisticFailureCount = null; } if ((EntityType != "Collection") || (filterStats && !monitoredStatistics.Contains("RecreateCount")) || (configuration.IgnoreNulls && RecreateCount.GetValueOrDefault(0) == 0)) { RecreateCount = null; } var isInteresting = ( ( LoadCount.HasValue || UpdateCount.HasValue || InsertCount.HasValue || DeleteCount.HasValue || FetchCount.HasValue || OptimisticFailureCount.HasValue || RecreateCount.HasValue ) ); if (!isInteresting) { EntityName = null; EntityType = null; } return(isInteresting); }//end IsInteresting()