23 lines
446 B
Plaintext
23 lines
446 B
Plaintext
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PHomeBuffEvent_GemMagnet : PHomeBuffEvent
|
|
{
|
|
public override void OnEventStart()
|
|
{
|
|
if (FromBuff.Unit is PHomePlayer player)
|
|
{
|
|
player.PickMagnet++;
|
|
}
|
|
}
|
|
|
|
public override void OnEventEnd()
|
|
{
|
|
if (FromBuff.Unit is PHomePlayer player)
|
|
{
|
|
player.PickMagnet--;
|
|
}
|
|
}
|
|
}
|