Files
nightclub-arcadia/NightclubArcadia/Assets/Scripts/Dialogue/DialougueSkillComparison.cs
T

14 lines
343 B
C#

using UnityEngine;
using Yarn.Unity;
public class SkillFunctions : MonoBehaviour
{
[YarnFunction("top_skill")]
public static string TopSkill(float a, string aName, float b, string bName, float c, string cName)
{
if (a >= b && a >= c) return aName;
if (b >= a && b >= c) return bName;
return cName;
}
}