コード例 #1
0
ファイル: BlobFactory.cs プロジェクト: VicYu1983/unity_learn
 void Awake()
 {
     if (prefabCup == null)
     {
         throw new Exception("請輸入prefabCup參數!");
     }
     if (prefabBlob == null)
     {
         throw new Exception("請輸入prefabBlob參數!");
     }
     if (transformCup == null)
     {
         throw new Exception("請輸入transformCup參數!");
     }
     if (transformInput == null)
     {
         throw new Exception("請輸入transformInput參數!");
     }
     blobRigidLayer  = GetComponentInChildren <BlobRigid>();
     blobEffectLayer = GetComponentInChildren <BlobParams>();
 }
コード例 #2
0
 public Task <Blob> GetBlob(BlobParams plParams)
 {
     return(_companyEngine.GetBlobAsync(plParams));
 }