20 lines
663 B
C#
20 lines
663 B
C#
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace EventMowForTreasure
|
|
{
|
|
public class EventMowForTreasureObstacleCell_FinalReward : EventMowForTreasureObstacleCell
|
|
{
|
|
[FormerlySerializedAs("effectCabClaimObj")]
|
|
[Header("FinalReward")]
|
|
[SerializeField] protected GameObject effectCanClaimObj;
|
|
[SerializeField] protected GameObject effectNormalObj;
|
|
public void SetEffectActive(bool isCanClaim)
|
|
{
|
|
if(effectCanClaimObj)
|
|
effectCanClaimObj?.SetActive(isCanClaim);
|
|
if(effectNormalObj)
|
|
effectNormalObj?.SetActive(!isCanClaim);
|
|
}
|
|
}
|
|
} |