本文只涉及一些案例,具体查看 DoTween 官方文档. 一. Basics public class Basics : MonoBehaviour { public Transform redCube, greenCube, blueCube, purpleCube; IEnumerator Start() { // Start after one second delay (to ignore Unity hiccups when activating Play mode in Editor…
1. Helloworld using UnityEngine; using XLua; public class Helloworld : MonoBehaviour { // Use this for initialization void Start () { LuaEnv luaenv = new LuaEnv(); // 执行代码块,输出 hello world luaenv.DoString("CS.UnityEngine.Debug.Log('hello world')"…