示例#1
0
 private void Awake()
 {
     ///Getting GrownFood so I can snag the potency value.
     grownFood     = GetComponent <GrownFood>();
     cottonPotency = grownFood.GetPlantData().Potency;
     ///calculating how much cotton/durathread you should get.
     seedModifier = Mathf.RoundToInt(cottonPotency / 25f);
     finalAmount  = seedModifier + 1;
 }
示例#2
0
 ///Getting Grownfood so we can get the potency of the plant, and calculates damage/radius.
 private void Awake()
 {
     grownFood = GetComponent <GrownFood>();
 }