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); }
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); }