complete refactor
This commit is contained in:
parent
65fe0e5c5d
commit
de2e8b1e50
71 changed files with 212 additions and 137 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using Godot;
|
||||
using Newlon;
|
||||
using Newlon.Components;
|
||||
using Newlon.Components.Plants;
|
||||
using Newlon.Resources;
|
||||
|
||||
public partial class RewardScene : Node
|
||||
{
|
||||
|
|
@ -18,9 +18,9 @@ public partial class RewardScene : Node
|
|||
descriptionLabel.Text = Tr(reward.Description);
|
||||
continueButton.Pressed += LevelController.Instance.ReturnToInitiator;
|
||||
|
||||
if (reward is PlantReward plantReward && plantReward.Plant.customFrame != null)
|
||||
if (reward is PlantReward plantReward && plantReward.Plant.CustomFrame != null)
|
||||
{
|
||||
field.Texture = plantReward.Plant.customFrame.almanachField;
|
||||
field.Texture = plantReward.Plant.CustomFrame.almanachField;
|
||||
}
|
||||
|
||||
var rewardedObject = reward.GetPreview().Instantiate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue