2025-01-25 04:38:09 +08:00

34 lines
733 B
C#

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
/// <summary>
/// override pathName
/// </summary>
public string PathName {
get {
return pathName;
}
set {
pathName = value;
AddPathName();
}
}
#endregion
void OnEnable() {
// 覆盖, 不使用自动名称设置
}
void AddPathName() {
if ( !paths.ContainsKey( pathName ) ) {
paths.Add( pathName.ToLower(), this );
}
}
}