WXMC/.svn/pristine/3f/3f08bc9b933d2075c6bab8ef7cca8d097f6ae726.svn-base
2024-12-04 16:18:46 +08:00

20 lines
461 B
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PHomeBuffEvent_PetLevelUp : PHomeBuffEvent
{
public int LevelUpCount = 1;
public override void OnEventStart()
{
if (FromBuff.Unit is PHomePlayer player)
{
for (int i = 0; i < LevelUpCount; i++)
{
player.Pets[UnityEngine.Random.Range(0, player.Pets.Count)].LevelUp();
}
}
}
}