private void Start() { shopUI.enabled = false; flowerSpawner = FindObjectOfType <FlowerSpawner>(); pollenManager = FindObjectOfType <PollenManager>(); hive = FindObjectOfType <Hive>(); statManager = FindObjectOfType <StatManager>(); ResetPricesToDefault(); }
private void Start() { shopUI.enabled = false; flowerSpawner = FindObjectOfType <FlowerSpawner>(); pollenManager = FindObjectOfType <PollenManager>(); hive = FindObjectOfType <Hive>(); statManager = FindObjectOfType <StatManager>(); defenseBeeManager = FindObjectOfType <DefenseBeeManager>(); SetFlowerText(flowerBuyPrice.ToString()); SetBearRepelentText(bearRepelentPrice[bearRepelentsUsed].ToString()); SetBeeText(beeGuardPrice[beeGuardAmount].ToString()); }
void MManagerAndLightDMG() { if (midRay.rigidbody.tag == "Monster") { mManager = midRay.rigidbody.GetComponent <MonsterManager>(); mManager.Damage(lightAttackDMG); } else if (midRay.rigidbody.tag == "Korento") { kManager = midRay.rigidbody.GetComponent <KorentoManager>(); kManager.Damage(lightAttackDMG); } else if (midRay.rigidbody.tag == "Pollen") { pollenManager = midRay.rigidbody.GetComponent <PollenManager>(); pollenManager.Damage(lightAttackDMG); } }
private void Start() { playerMovementSimple = GetComponent <PlayerMovementSimple>(); pollenManager = GetComponent <PollenManager>(); }
private void Start() { pollenManager = FindObjectOfType <PollenManager>(); }