18 lines
431 B
C#
18 lines
431 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu]
|
|
public class HiddenMap : ConsumableItem
|
|
{
|
|
public HiddenMapZone mapZone;
|
|
|
|
public GameEvent_Int onMapZoneDiscovered;
|
|
|
|
public override void Consume()
|
|
{
|
|
PlayerDataHandler.Instance.SaveSunMapUsedProgress(PlayerDataHandler.Instance.currentPlayerName.Value);
|
|
onMapZoneDiscovered.Raise((int)mapZone);
|
|
}
|
|
}
|