public override void OnRelease() { this.playSpeedOnPause = VFactor.zero; this.deltaTime = 0; this.started_ = false; this.nextDestroy = false; this.enabled = true; this.name = string.Empty; this.length = 5000; this.loop = false; this.playSpeed = VFactor.one; this.unstoppable = false; this.actionName = string.Empty; this.refGameObjectsCount = -1; this.time = 0; this.parentAction = null; this.actorHandles.Clear(); this.gameObjects.Clear(); this.tracks.Clear(); this.conditions.Clear(); this.conditionChanged = true; this.refParams.Reset(); this.refParamsSrc = null; this.templateObjectIds.Clear(); this.tempObjsAffectedByPlaySpeed.Clear(); this.onActionStop = (ActionStopDelegate)Delegate.RemoveAll(this.onActionStop, this.onActionStop); }
public void CopyRefParams(AGE.Action resource) { this.refParamsSrc = resource.refParams; this.refParams.ClearParams(); DictionaryView <string, SRefParam> .Enumerator enumerator = this.refParamsSrc.refParamList.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, SRefParam> current = enumerator.Current; KeyValuePair <string, SRefParam> pair2 = enumerator.Current; this.refParams.refParamList.Add(current.Key, pair2.Value.Clone()); } }
public void CopyRefParams(Action resource) { this.refParamsSrc = resource.refParams; this.refParams.ClearParams(); DictionaryView <string, SRefParam> .Enumerator enumerator = this.refParamsSrc.refParamList.GetEnumerator(); while (enumerator.MoveNext()) { DictionaryView <string, SRefParam> refParamList = this.refParams.refParamList; KeyValuePair <string, SRefParam> current = enumerator.Current; string key = current.get_Key(); KeyValuePair <string, SRefParam> current2 = enumerator.Current; refParamList.Add(key, current2.get_Value().Clone()); } }
public void InheritRefParams(Action resource) { DictionaryView <string, SRefParam> .Enumerator enumerator = resource.refParams.refParamList.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, SRefParam> current = enumerator.Current; string key = current.get_Key(); KeyValuePair <string, SRefParam> current2 = enumerator.Current; SRefParam value = current2.get_Value(); RefParamOperator refParamOperator = this.refParams; KeyValuePair <string, SRefParam> current3 = enumerator.Current; string key2 = current3.get_Key(); KeyValuePair <string, SRefParam> current4 = enumerator.Current; refParamOperator.SetOrAddRefParam(key2, current4.get_Value()); } }