34 lines
733 B
C#
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 );
|
|
}
|
|
}
|
|
}
|