player progress
This commit is contained in:
parent
5bdbfa4d82
commit
27d839b86f
27 changed files with 236 additions and 68 deletions
|
|
@ -11,5 +11,18 @@ public partial class PlantReward : RewardResource
|
|||
{
|
||||
return Plant.Scene;
|
||||
}
|
||||
public override bool Redeem()
|
||||
{
|
||||
if (PlayerProgress.Instance.PlayerPlants.Contains(Plant) == false)
|
||||
{
|
||||
PlayerProgress.Instance.PlayerPlants.Add(Plant);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue