using UnityEngine; using System.Collections; public class iTweenPathEX : iTweenPath { // Vars for presetting public float totalePlayTime = 1.0f; // save play total time public bool adjustViewDirAuto = false; #region Member Access /// /// override pathName /// public string PathName { get { return pathName; } set { pathName = value; AddPathName(); } } #endregion void OnEnable() { // 覆盖, 不使用自动名称设置 } void AddPathName() { if ( !paths.ContainsKey( pathName ) ) { paths.Add( pathName.ToLower(), this ); } } }