private void CreateMouseObj() { string strFileName = "Prefabs/UI/MousePanel"; //string strFile = strFileName.ToLower(); DelegateProxy.LoadAsset(strFileName, OnPrefabLoaded); }
private void CreateMouseObj() { string text = "Prefabs/UI/MousePanel"; string text2 = text.ToLower(); DelegateProxy.LoadAsset(text, new AssetCallBack(this.OnPrefabLoaded)); }
private void Awake() { this.mGo = base.gameObject; this.mAnimation = this.mGo.GetComponent <Animation>(); if (this.mAnimation == null) { this.mAnimation = this.mGo.AddComponent <Animation>(); } if (this.mAnimation == null) { return; } this.mAnimation.playAutomatically = true; this.mAnimation.enabled = false; this.mAnimation.enabled = true; if (this.mAnimations == null) { LogSystem.LogWarning(new object[] { "mAnimations is NULL " + this.mGo.name }); return; } for (int i = 0; i < this.mAnimations.Length; i++) { AnimationProxy.AnimationInfo animationInfo = this.mAnimations[i]; if (animationInfo != null) { if (!this.mAnimationMaps.ContainsKey(animationInfo.strName)) { this.mAnimationMaps.Add(animationInfo.strName, animationInfo.strPath); } } } if (this.mAnimations.Length > 0) { this.configLoaded = true; } if (!this.mAnimationMaps.ContainsKey(this.mMainClip.strName)) { this.mAnimationMaps.Add(this.mMainClip.strName, this.mMainClip.strPath); } if (!string.IsNullOrEmpty(this.modelAcionID)) { string strFileName = DelegateProxy.StringBuilder(new object[] { "Config/AnimationInfos/", this.modelAcionID }); DelegateProxy.LoadAsset(strFileName, new AssetCallBack(this.AniInfoAssetLoaded)); } else { this.OnStart(); if (this.onAnimationConfigLoaded != null) { this.onAnimationConfigLoaded(this); } LogSystem.LogWarning(new object[] { "Model does not has model action info,", this.mGo.name }); } }