Example #1
0
    public void Created(SeedBase seedToEquip)
    {
        berrySprite   = seedToEquip.GetBerrySprite();
        infoName.text = seedToEquip.GetBerryName();

        growthMultiplier = seedToEquip.GetGrowthMultiplier();
        //playerValues.seedStage = 0;
        hasEquippedSeed = true;
        OnEnable();
    }
Example #2
0
 public void PlantBerry(SeedBase berry) //Stage 1
 {
     berryPlantedAtTime = timeManager.GetTimeSeconds();
     berryIsPlanted     = true;
     berryGrowthPoints  = 0;
     berryStage         = 1;
     plantSprite.sprite = plantStageOne;
     plantedBerry       = berry;
     plantedBerryName   = berry.GetSeedName();
     berryGrowthSpeed   = berry.GetGrowthMultiplier();
     plantStageFive     = berry.GetBerryTileFinishedSprite();
     berry.SetInactiveStatus(true);
 }