private bool canUpgradeMaki()
 {
     if (maki != null)
     {
         MakiData  makiData  = maki.GetComponent <MakiData>();
         MakiLevel nextLevel = makiData.getNextLevel();
         if (nextLevel != null)
         {
             return(GameManager.ingredients >= nextLevel.cost);
         }
     }
     return(false);
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     lastShotTime  = Time.time;
     makiData      = gameObject.GetComponentInChildren <MakiData>();
     pizzasInRange = new List <GameObject>();
 }