1. * created by shenjun
    2. */
    3. using System.Collections;
    4. using System.Collections.Generic;
    5. using UnityEngine;
    6. using XLua;
    7. public class DefaultValueParam : MonoBehaviour {
    8. void Start () {
    9. LuaEnv luaEnv = new LuaEnv();
    10. luaEnv.DoString("require 'DefaultValueParam'");
    11. luaEnv.Dispose();
    12. }
    13. }
    14. public void DefaultValueMethod(int num = 0)
    15. {
    16. Debug.Log("num :" + num);
    17. }
    18. }