14 lines
343 B
C#
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;
|
|
}
|
|
}
|