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); }
// Use this for initialization void Start() { lastShotTime = Time.time; makiData = gameObject.GetComponentInChildren <MakiData>(); pizzasInRange = new List <GameObject>(); }