using UnityEngine; using System.Collections; using DG.Tweening; public class GetStart : MonoBehaviour { , , ); public Transform tr; bool isIn = false; // Use this for initialization void Start() { //DOTween.To(() => { return myValue; }, (x) => { myV
using UnityEngine; using System.Collections; using LuaInterface;//tolua 空间引用 using DG.Tweening;//DOTWEEN 空间引用 public static class MyExt{//扩展方法必须在静态类中 public static Transform LQDoMove(this Transform root, string str){//必须为静态方法, 第一参数为 this Transform, c
转载自: http://shenbai.iteye.com/blog/1517366 1.全局对象 在工程中定义全局对象可以允许你操作你的应用程序的全局设置.这个全局对象必须定义在根包下. import play.*; public class Global extends GlobalSettings { ... } 2. 应用程序启动和关闭的拦截 可以重写onStart和onStop操作,通知对应的应用程序命周期事件. import play.*; public class Global e
最近再做一个小的项目,只要使用的是DOTween 动画. 但是感到DOTween 在某些方面不如 NGUI的Twenn 比较好用 所以就模仿了一下 在此,请各位大神指点一下 public class HCTweenScale :DoTweener { public Vector3 formScale; public Vector3 toScale; public float animTime = 1f; Transform tr; Transform myTransform { get { if