Beispiel #1
0
 public CatAsset getCatAsset()
 {
     if (catAsset == null)
     {
         catAsset = Resources.Load <CatAsset>("CatAssets/" + catType.ToString());
     }
     return(catAsset);
 }
Beispiel #2
0
 CatAsset getCatAsset()
 {
     if (catAsset == null)
     {
         catAsset = transform.parent.
                    GetComponent <ExploreCatHolder>().cat.getCatAsset();
         getSource().pitch = getCatAsset().pitch;
     }
     return(catAsset);
 }