internal void InitializeChildren() { #if DEBUG if (DebugMode) { Debug.Log(string.Format("Initializing composite tween with {0} children", _children.Count)); } #endif _count = _children.Count; #if TRIAL /* RELEASE HACK CHECK */ Acme2 acme = (Acme2)Framework.GetComponent <Acme2>(true); if (null == acme || !acme.gameObject.activeInHierarchy || !acme.enabled) { return; } #endif foreach (IAsyncAction child in _children) { InitializeChild(child); Composite composite = child as Composite; if (null != composite) { composite.InitializeChildren(); } } }
///<summary> /// Adds a tween ///</summary> ///<param name="tween"></param> public void Add(IAnimation tween) { //CancelSimilar(tween); //Debug.Log("ADD: " + tween); // add new tween _tweens.Add(tween); //tween.Play(); HandleConnection(); #if DEBUG if (DebugMode) { Debug.Log(string.Format("===== TweenRegistry: Tween added [now running {0}] =====\nAdded => {1}", _tweens.Count, tween)); } #endif #if TRIAL /* RELEASE HACK CHECK */ Acme2 acme = (Acme2)Framework.GetComponent <Acme2>(true); if (null == acme || !acme.gameObject.activeInHierarchy || !acme.enabled) { return; } #endif }
public void Render() { #if TRIAL /* HACK CHECK */ if (null == _acme || !_acme.gameObject.activeInHierarchy || !_acme.enabled || _lockStyle == null) { return; } /* HACK CHECK (ANIMATION) */ Acme2 acme = (Acme2)Framework.GetComponent <Acme2>(true); if (null == acme || !acme.gameObject.activeInHierarchy || !acme.enabled) { return; } if (!Application.isEditor && !_dialogDone && (Time.time - _startTime) > _timeToWait) { _dialogDone = true; const string text = @"Created using the free version of eDriven.Gui. Please purchase the package and support further development!"; //Debug.Log(text); Alert.Show( new AlertOption(AlertOptionType.Title, "Info"), new AlertOption(AlertOptionType.Message, text), new AlertOption(AlertOptionType.Button, new AlertButtonDescriptor("ok", "OK", true)), new AlertOption(AlertOptionType.AddedEffect, _alertAddedEffect), new AlertOption(AlertOptionType.RemovedEffect, _alertRemovedEffect) ); } #endif TextFieldFocusHelper.RenderDummyTextField(); _stageListDesc.ForEach(delegate(Stage stage) { if (stage.QVisible) { stage.Draw(); } }); if (FocusManager.AutoCorrectUnityFocus /* && Event.current.type == EventType.Repaint)*/) { TextFieldFocusHelper.HandleFocus(); } }
private void InitProxy() { #if DEBUG if (DebugMode) { Debug.Log("InitProxy"); } #endif #if TRIAL /* RELEASE HACK CHECK */ Acme2 acme = (Acme2)Framework.GetComponent <Acme2>(true); if (null == acme || !acme.gameObject.activeInHierarchy || !acme.enabled) { return; } #endif //Debug.Log("InitProxy"); // NOTE: "Pause" doesn't use target nor property, thus we are alowing the posibility of not declaring it if (CheckTarget && null == Target) { throw new Exception(string.Format("Target not defined: " + this)); } //Debug.Log("_property: " + _property); if (CheckProperty && string.IsNullOrEmpty(Property)) { throw new Exception(string.Format("Property not defined: " + this)); } if (null != Target && null != Property && null == _proxy) { _proxy = new MemberProxy(Target, Property); } //Debug.Log("Proxy built: " + _proxy); }