unity挂载lua脚本和etc图导致的带透明通道图片颜色变淡问题

一.实现unity像挂载c#一样挂载lua脚本

using UnityEngine;
using System.Collections;
using Slua;
using System.Collections.Generic;
using DG.Tweening;
using System;
public class LuaItems:MonoBehaviour
{
    [SerializeField]
    public string luaPath;
    [SerializeField]
    public int paramsLen = 0;
    [SerializeField]
    public List paramsList = new List();
    protected  _luaTable;
    public LuaTable luaTable
    {
        get
        {
            //LuaManger.luaSvr是slua自带的luastate封装
            if(_luaTable == null && !string.IsNullOrEmpty(luaPath)&&LuaMgr.luaSvr != null)
            {
                _luaTable = LuaMgr.luaSvr.start(luaPath) as LuaTable
            }
            return _luaTable
        }
    }

    protected LuaFunction _luaUpdateFun;
    protected LuaFunction _luaFixUpdateFun;
    protected LuaFunction _luaAwake;
    protected LuaFunction _luaStartItem;
    protected LuaFun

你可能感兴趣的:(unity3d,1024程序员节)