virtual protected WrappedType ResolveWrapped() { if (m_wrappedResolved.isValid) { return(m_wrappedResolved.value); } if (m_wrapped != null) { m_wrappedResolved = new SafeRef <WrappedType> (m_wrapped); return(m_wrapped); } object d; if (!FindWrapped(out d)) { #if UNITY_EDITOR || DEBUG_UNSTRIP Debug.LogWarning("[" + Time.frameCount + "][" + this.Path() + "] unable to resolve driven target with type " + typeof(WrappedType).Name); #endif return(null); } var dres = d as WrappedType; m_wrappedResolved = new SafeRef <WrappedType> (dres); return(dres); }
public PanelAnimatorTransition(AnimatorPanel owner, int transitionLayer, PanelTransition t, OnTransitionFrameDelegate onFrameDelegate) { m_owner = new SafeRef <AnimatorPanel>(owner); this.transitionLayer = transitionLayer; this.panelTransition = t; this.animatorTargetState = Animator.StringToHash(t.name); this.onFrameDelegate = onFrameDelegate; this.maxTransitionTime = 1f; }
public PooledObject( T obj, bool free, IObjectRetainer <T> objectRetainer, IObjectPoolStats <T> poolStats) { m_object = new SafeRef <T>(obj); m_free = free; m_objectRetainer = objectRetainer; m_poolStats = poolStats; }
public ShowTransition(ShowHidePanel owner) { m_owner = new SafeRef <ShowHidePanel>(owner); }