2023-12-18 19:59:06 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using Framework;
|
|
|
|
|
|
using Gameplay.Level;
|
|
|
|
|
|
|
|
|
|
|
|
public class RedPointNodeMail : RedPointNode
|
|
|
|
|
|
{
|
|
|
|
|
|
public RedPointNodeMail(int id) : base(id)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override EventManager.EventName[] eventsToRegister => new[]
|
2023-12-19 14:19:07 +08:00
|
|
|
|
{ EventManager.EventName.HaveNewMail,EventManager.EventName.MailStateChange };
|
2023-12-18 19:59:06 +08:00
|
|
|
|
|
|
|
|
|
|
protected override int GetCount()
|
|
|
|
|
|
{
|
2023-12-19 14:19:07 +08:00
|
|
|
|
if(MailSystem.Instance.IsHaveLingQuMail())
|
2023-12-18 19:59:06 +08:00
|
|
|
|
{
|
2023-12-19 14:19:07 +08:00
|
|
|
|
return 1;
|
2023-12-18 19:59:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
return 0;
|
2023-12-19 14:19:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
2023-12-18 19:59:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|