public static void Sub(this Employeestruct i, Employeestruct d, out Employeestruct e, ref Employeestruct a) { e = d; e.Salary = 10000; a.Salary = i.Salary - d.Salary; LuaTestCommon.Log("e.name:" + e.Name + ", e.salary:" + e.Salary); LuaTestCommon.Log("a.name:" + a.Name + ", a.salary:" + a.Salary); }
public static int Add(this Employeestruct i, Employeestruct d) { return(i.Salary * 12 + i.AnnualBonus + d.Salary * 12 + d.AnnualBonus); }
public static void PrintSalary(this Employeestruct i) { LuaTestCommon.Log("Salary:" + i.Salary); }
public static int GetIncomeForOneYear(this Employeestruct i) { return(i.Salary * 12 + i.AnnualBonus); }
public static void PrintSalary(this Employeestruct i) { Debug.Log("Salary:" + i.Salary); }