20 lines
461 B
Plaintext
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();
|
|
}
|
|
}
|
|
}
|
|
}
|