24 lines
508 B
C#
24 lines
508 B
C#
using System;
|
|
using Framework;
|
|
using Gameplay.Level;
|
|
|
|
public class RedPointNodeMail : RedPointNode
|
|
{
|
|
public RedPointNodeMail(int id) : base(id)
|
|
{
|
|
}
|
|
|
|
protected override EventManager.EventName[] eventsToRegister => new[]
|
|
{ EventManager.EventName.RequireMailRet,EventManager.EventName.MailStateChange };
|
|
|
|
protected override int GetCount()
|
|
{
|
|
if(MailSystem.Instance.IsHaveLingQuMail())
|
|
{
|
|
return 1;
|
|
}
|
|
return 0;
|
|
|
|
|
|
}
|
|
} |