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