public VisualEffectPlayableBehaviour(GameObject owner, VisualEffectContext context, VisualEffect prefab, VisualEffectPlayableAsset.StopMode stopMode, VisualEffectPlayableAsset.ParentingMode parentingMode, VisualEffectPlayableAsset.OrientationMethod orientationMethod, Vector3 offset) : this() { //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) m_ownerTransform = owner.get_transform(); m_visualEffectContext = context; m_prefab = prefab; m_stopMode = stopMode; m_parentingMode = parentingMode; m_orientationMethod = orientationMethod; m_offset = offset; }
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) if (!m_prefabReference.get_hasValue()) { return(Playable.get_Null()); } VisualEffectContext context = TimelineContextUtility.GetContext <VisualEffectContext>(graph); VisualEffectPlayableBehaviour visualEffectPlayableBehaviour = new VisualEffectPlayableBehaviour(owner, context, m_prefab, m_stopMode, m_parentingMode, m_orientationMethod, m_offset); return(ScriptPlayable <VisualEffectPlayableBehaviour> .op_Implicit(ScriptPlayable <VisualEffectPlayableBehaviour> .Create(graph, visualEffectPlayableBehaviour, 0))); }
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) { //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) if (null == m_parameters || !m_parameters.isValid || Mathf.Approximately(m_strength, 0f)) { return(Playable.get_Null()); } Transform parent = owner.get_transform().get_parent(); if (null == parent) { return(Playable.get_Null()); } CellObject componentInParent = parent.GetComponentInParent <CellObject>(); if (null == componentInParent) { return(Playable.get_Null()); } AbstractFightMap abstractFightMap = componentInParent.parentMap as AbstractFightMap; if (null == abstractFightMap) { return(Playable.get_Null()); } Vector2Int val = componentInParent.coords; Quaternion rotation; switch (m_orientationMethod) { case OrientationMethod.None: rotation = Quaternion.get_identity(); break; case OrientationMethod.Context: { VisualEffectContext context = TimelineContextUtility.GetContext <VisualEffectContext>(graph); if (context == null) { rotation = Quaternion.get_identity(); break; } context.GetVisualEffectTransformation(out rotation, out Vector3 _); val += m_offset.Rotate(rotation); break; } case OrientationMethod.Director: rotation = owner.get_transform().get_rotation(); val += m_offset.Rotate(rotation); break; default: throw new ArgumentOutOfRangeException(); } CellObjectAnimationPlayableBehaviour cellObjectAnimationPlayableBehaviour = new CellObjectAnimationPlayableBehaviour(abstractFightMap, m_parameters, val, rotation, m_strength); return(ScriptPlayable <CellObjectAnimationPlayableBehaviour> .op_Implicit(ScriptPlayable <CellObjectAnimationPlayableBehaviour> .Create(graph, cellObjectAnimationPlayableBehaviour, 0))); }