2016-01-02 100 views
-1

我一直在尋找過去幾天,並沒有任何的喜悅。我想要做的是動態生成一個對象的句柄並將其返回。我解構了一個統一的dll,當我重新格式化該項目時,我無法再次運行它。麻煩回覆參考

public class PlayerScript : MonoBehaviour 
{ 
    [CompilerGenerated] 
    [Serializable] 
    internal sealed class ApplyCustomCosmectic : GenericGenerator<WWW> 
    { 
     internal PlayerScript self_1412; 

     public ApplyCustomCosmetic(PlayerScript self_) 
     { 
      this.self_1412= self_; 
     } 

     public override IEnumerator<WWW> GetEnumerator() 
     { 
      return new PlayerScript.ApplyCustomCosmetic.(this.self_1412); 
     } 
    } 
} 

的誤差從最後一行

PlayerScript.ApplyCustomCosmetic.(this.self_2175) 

在原始的dll文件但是當我嘗試用它拋出一個錯誤增補重新編譯其中工程催生。將此作爲構造對象返回的最佳方法是什麼?即。自我的新對象

感謝

回答

0

更換PlayerScript.ApplyCustomCosmetic.(...PlayerScript.ApplyCustomCosmetic(...