コード例 #1
0
 private void Start()
 {
     shopUI.enabled = false;
     flowerSpawner  = FindObjectOfType <FlowerSpawner>();
     pollenManager  = FindObjectOfType <PollenManager>();
     hive           = FindObjectOfType <Hive>();
     statManager    = FindObjectOfType <StatManager>();
     ResetPricesToDefault();
 }
コード例 #2
0
ファイル: HiveShop.cs プロジェクト: Birdistheword/BeeeHave
 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());
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
ファイル: StatManager.cs プロジェクト: Birdistheword/BeeeHave
 private void Start()
 {
     playerMovementSimple = GetComponent <PlayerMovementSimple>();
     pollenManager        = GetComponent <PollenManager>();
 }
コード例 #5
0
 private void Start()
 {
     pollenManager = FindObjectOfType <PollenManager>();
 }