Ejemplo n.º 1
0
 public int this[SpecialVariableKey key]
 {
     get
     {
         return(key.value());
     }
 }
Ejemplo n.º 2
0
    public static int value(this SpecialVariableKey key)
    {
        switch (key)
        {
        case SpecialVariableKey.level:
            return(TeamQueue.shared.captain.GetComponent <HumanInfo>().level);

        case SpecialVariableKey.hp:
            return(TeamQueue.shared.captain.GetComponent <HumanInfo>().property.hp);
        }
        return(-1);
    }