using System.Collections; using System.Collections.Generic; using UnityEngine; public class PHomeBuffEvent_Gem : PHomeBuffEvent { public float Ratio; public float Const; public override void OnEventStart() { if (FromBuff.Unit is PHomePlayer player) { player.GemCount = (int)(player.GemCount * (1 + Ratio) + Const); } } }